[Newbies] binary method or keyword with one argument

Bert Freudenberg bert at freudenbergs.de
Mon Sep 29 00:25:02 UTC 2008


Am 28.09.2008 um 17:09 schrieb Mark Volkmann:

> Is there a rule of thumb for deciding whether a method that takes  
> one argument should be implemented as a binary method or a keyword  
> method?

If in doubt, use keywords.

> Do you only use binary when the method is like an mathematical  
> operation?


Yes. And for very common/general operations ("," or "->" come to mind).

- Bert -




More information about the Beginners mailing list