News for hackers. Stuff that matters.
Re:MoonScript - A programmer friendly language that compiles... by aashay on Thursday August 11, 2011 @03:27AM (#2871856)
Anybody try writing an iPhone app with MoonScript -> Lua -> Wax -> Objective C?
Re:MoonScript - A programmer friendly language that compiles... by chriseidhof on Thursday August 11, 2011 @03:41AM (#2871891)
Exactly! I think they only need some kind of way to add syntax for obj-c style messages.

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

...

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.