Re: implicit values (was "The Inbox: Tools-LM.828.mcz")
Posted by
Craig Latta on
Aug 14, 2018; 7:47pm
URL: https://forum.world.st/The-Inbox-Tools-LM-828-mcz-tp5082873p5082967.html
Hi Leon--
> ...I would like to hear someone else's stance on it however.
I also think everyone should know that ([] value) is nil, so
writing "ifAbsent: []" is fine. But I wouldn't mind an explicit
expression inside those brackets, either, even if that expression is
"nil". No one's legitimacy is at stake in either case. A comment to
explain what that nil will signify later could be useful in some situations.
In contrast, seeing someone write "^self" at the end of every
method that answers self (at least, without a comment to explain any
subtlety there may be) would drive me insane. :)
-C
--
Craig Latta
Black Page Digital
Amsterdam :: San Francisco
[hidden email]
+31 6 2757 7177 (SMS ok)
+ 1 415 287 3547 (no SMS)