Jaime Metcher wrote, On 4/4/2007 4:30 PM:

The thing that made me think was this statement - "Smalltalk doesn't have
static methods, neither does Ruby".  The implication being that static
methods are just another Java thing that doesn't apply to dynamic languages.

Am I missing some crucial distinction between static methods and class
methods?  I don't know Java well enough to be sure, but the Ruby docs
actually state that they are equivalent. I don't know Ruby, but can anyone
imagine Smalltalk without class methods and variables?

As you said, Ruby does indeed have class methods, and they are the same thing as static methods - they are not tied to any particular object. Now, I don't know if there are some subtle differences behind that and the naming conventions...

As for Smalltalk, I don't know enough about it to say anything useful. But, I do think static or class methods can provide a useful distinction between their object counterparts.




You are subscribed to cfcdev. To unsubscribe, please follow the instructions at 
http://www.cfczone.org/listserv.cfm

CFCDev is supported by:
Katapult Media, Inc.
We are cool code geeks looking for fun projects to rock!
www.katapultmedia.com

An archive of the CFCDev list is available at 
www.mail-archive.com/[email protected]

Reply via email to