3 ms·
Doesn't Smalltalk have a convention whereby the name of the function specifies the purpose of the variables, like arcWithCenterX: withCenterY: or similar?
by JadeNB 11y ago
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.)
- jurip 11y agoYeah, and Objective-C and now Swift inherited that same convention. Objective-C: [self frob:param1 withObject:param2]; Swift: self.frob(param1, withObject:param2)
- protomyth 11y agoafter going through and starting to learn Swift, I really wish self.frob(param1, withObject:param2) could be written as self.[frob:param1 withObject:param2]