lua-users home
lua-l archive

Re: case statement for Lua

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


>Maybe it's just me, but does anyone else find this syntax, well,
>gruesome?
Anyone considered giving Lua a Smalltalk/Objective-C like syntax?
This is what Objective-C looks like:
- addAttributeNamed:aName withValue:aString
{
 id newAttribute = [[Attribute alloc] init];
 [newAttribute setItemName:aName];
 [newAttribute setValue:aString];
 [attributeList addObject:newAttribute];
 return self;
}
---
Steve Dekorte - OPENSTEP developer - San Francisco

AltStyle によって変換されたページ (->オリジナル) /