Livid
276.74D
573.42D
V2EX  ›  问与答

请教一个变量命名

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