Re:Get rid of boolean function parameters
by JadeNB on Monday June 15, 2015 @10:59AM
(#9719730)
Doesn't Smalltalk have a convention whereby the name of the function specifies the purpose of the variables, like
or similar? (I vaguely recall this, but can't find any examples online.)
[ Parent
| on HN ]
Yeah, and Objective-C and now Swift inherited that same convention.
Objective-C:
[self frob:param1 withObject:param2];
Swift: self.frob(param1, withObject:param2)