Livid
403.84D
564.89D
V2EX  ›  问与答

请教一个变量命名

  •  
  •   Livid ·
    PRO
    · Feb 9, 2011 · 5555 views
    This topic created in 5746 days ago, the information mentioned may be changed or developed.
    NSArray * cityIds

    or

    NSArray * citiesIds

    ?
    11 replies  •  1970-01-01 08:00:00 +08:00
    Kai
    Kai
    Feb 9, 2011 via iPad
    1
    我觉得是 NSArray * cityIds
    westy
    westy
    Feb 9, 2011
    2
    cityids +1
    TheOnly92
    TheOnly92
    Feb 9, 2011
    3
    cityIds 或者说 city's IDs,没有 cities IDs 这回事吧。。。
    shawiz
    shawiz
    Feb 9, 2011
    4
    cityIds +1
    kayue
    kayue
    Feb 9, 2011
    5
    cities' id
    Livid
    Livid
    MOD
    OP
    PRO
    Feb 9, 2011
    6
    有哪个编程语言的变量名里可以出现空格和分号?
    roamlog
    roamlog
    Feb 9, 2011
    7
    @Livid 我印象中没有
    xhacker
    xhacker
    Feb 9, 2011
    8
    @roamlog Shakespeare ^ ^
    Los
    Los
    Feb 9, 2011
    9
    ruby习惯变量命名 city_ids
    shinyzhu
    shinyzhu
    Feb 9, 2011
    10
    我写C#
    这种名字都用cityIds
    myrual
    myrual
    Feb 9, 2011
    11
    citiesIds 有必要两个复数表示么?
    还是cityIds好一些
    或者group_city_ID?
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   4583 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 41ms · UTC 09:42 · PVG 17:42 · LAX 01:42 · JFK 04:42
    ♥ Do have faith in what you're doing.