Difference between revisions of "Talk:State"
Jump to navigation
Jump to search
Void Singer (talk | contribs) m (Constant vs Explicit values?) |
Omei Qunhua (talk | contribs) (comment) |
||
Line 2: | Line 2: | ||
I've noticed an ongoing style difference in recent edits, namely in the preference between named constants versus explicit values... as can be seen from difference in edits for this entry (namely 0 or PUBLIC_CHANNEL). I have no preference either way, and can see merits for both (the named constant is more informative to new users [tells what it does], the explicit value more informative to experienced users [tells what it is])... AFAIK neither compiler actually cares one way or the other so there appears not to be any side effects. should we settle on a preference?<br/>-- '''[[User:Void_Singer|Void]]''' <sup><small>([[User_talk:Void_Singer|talk]]|[[Special:Contributions/Void_Singer|contribs]])</small></sup> 08:35, 27 December 2012 (PST) | I've noticed an ongoing style difference in recent edits, namely in the preference between named constants versus explicit values... as can be seen from difference in edits for this entry (namely 0 or PUBLIC_CHANNEL). I have no preference either way, and can see merits for both (the named constant is more informative to new users [tells what it does], the explicit value more informative to experienced users [tells what it is])... AFAIK neither compiler actually cares one way or the other so there appears not to be any side effects. should we settle on a preference?<br/>-- '''[[User:Void_Singer|Void]]''' <sup><small>([[User_talk:Void_Singer|talk]]|[[Special:Contributions/Void_Singer|contribs]])</small></sup> 08:35, 27 December 2012 (PST) | ||
:My feeling was that new users are initially introduced to llSay(0, ... as that is what they see in the default "new script" and that using PUBLIC_CHANNEL in Wiki examples would be confusing. Avoiding the confusion by adding an explanatory comment each time seems a bit ?pedantic? (not sure the right word) [[User:Omei Qunhua|Omei Qunhua]] 08:47, 27 December 2012 (PST) |
Revision as of 08:47, 27 December 2012
Constant vs Explicit values?
I've noticed an ongoing style difference in recent edits, namely in the preference between named constants versus explicit values... as can be seen from difference in edits for this entry (namely 0 or PUBLIC_CHANNEL). I have no preference either way, and can see merits for both (the named constant is more informative to new users [tells what it does], the explicit value more informative to experienced users [tells what it is])... AFAIK neither compiler actually cares one way or the other so there appears not to be any side effects. should we settle on a preference?
-- Void (talk|contribs) 08:35, 27 December 2012 (PST)
- My feeling was that new users are initially introduced to llSay(0, ... as that is what they see in the default "new script" and that using PUBLIC_CHANNEL in Wiki examples would be confusing. Avoiding the confusion by adding an explanatory comment each time seems a bit ?pedantic? (not sure the right word) Omei Qunhua 08:47, 27 December 2012 (PST)