On Apr 25, 2006, at 4:56 PM, Theodore H. Smith wrote:

RB also has default parameters, something ObjC lacks. They are soooo handy. RB's also got namespaced constants (via modules/classes).

[init] isn't equivalent to new.

[alloc] is equivalent to new.

Obviously you cannot pass parameters to alloc, but you said "Constructor arguments," and -init is equivalent to a constructor function.

I've never found setters confusing, maybe you have.

I don't, but some probably do. As I said, I am just playing devil's advocate. I don't necessarily believe the things I said.

"for each" is pretty cool also. ObjC has no "for each".

Yes, but "for each" is functionally equivalent to an ordinary for loop.

Oh well, I will stop now. Each language has its pros and cons. As Dr. Steinman said, ObjC and RB are not better or worse than each other, just different.

-- Asher

_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>

Reply via email to