News for hackers. Stuff that matters.
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

    arcWithCenterX: withCenterY:
or similar? (I vaguely recall this, but can't find any examples online.)
Re:Get rid of boolean function parameters by jurip on Monday June 15, 2015 @11:14AM (#9719826)
Yeah, and Objective-C and now Swift inherited that same convention.

Objective-C:

    [self frob:param1 withObject:param2];
Swift:

    self.frob(param1, withObject:param2)
Re:Get rid of boolean function parameters by protomyth on Monday June 15, 2015 @11:50AM (#9720103)
after going through and starting to learn Swift, I really wish

  self.frob(param1, withObject:param2)
could be written as

  self.[frob:param1 withObject:param2]