V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
V2EX 提问指南
wizardforcel
V2EX  ›  问与答

谁有特别的函数命名技巧?

  •  
  •   wizardforcel · 2016-03-13 13:36:45 +08:00 · 2605 次点击
    这是一个创建于 2937 天前的主题,其中的信息可能已经有所发展或是发生改变。

    像 golang 这种不支持重载的语言,如果我要写个带好几个构造器的 struct ,怎么命名可读性会更高?

    2 条回复    2016-03-15 11:43:02 +08:00
    chmlai
        1
    chmlai  
       2016-03-13 13:41:29 +08:00
    学 OC 那样
    wizardforcel
        2
    wizardforcel  
    OP
       2016-03-15 11:43:02 +08:00
    @chmlai 我没写过 OC 。
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   1009 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 27ms · UTC 19:28 · PVG 03:28 · LAX 12:28 · JFK 15:28
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.