Re:MoonScript - A programmer friendly language that compiles...
by jacques_chester on Thursday August 11, 2011 @04:07AM
(#2871940)
> Exactly! I think they only need some kind of way to add syntax for obj-c style messages.
http://olua.sourceforge.net/ ?
> If only objc would remove the square brackets (and stay true to smalltalk), the syntax would be so much nicer:
Objective C is (or at least it used to be, not sure ATM) a strict superset of C. One of the ways this is achieved is through having orthogonal syntax for the smalltalk-ish bits compared to classic C.
If only objc would remove the square brackets (and stay true to smalltalk), the syntax would be so much nicer:
NSArray* array = NSArray alloc init autorelease NSDictionary* dict = NSDictionary dictionaryWithObjectsAndKeys:obj,key,nil
...