lua-users home
lua-l archive

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




On 9/29/2010 12:19 PM, Peter Sommerfeld wrote:
Am 29.09.2010, 20:55 Uhr, schrieb Christopher Eykamp <chris@eykamp.com>:
I think at the very least the syntax should be changed from a : to
another symbol (-> ?) to make the distinction clearer.  Until that
happens, I share your desire to find a way to make the . operator work
as the : does.

Sorry, I'm a bit tired of these kinds of (minor) suggestions.
Designing languages according to the boilerplate of other
languages is certainly no good idea. There are always languages
with other conventions. "->" means in erlang "return" for
instance. May be you are not used to these languages, others
are. If you use Lua, use Lua and become familiar with syntax
and idioms.

My suggestion was not to make Lua more like any particular language, but to increase the "cognitive space" between two very similar concepts; towards that end, -> was an arbitrary choice. I'm not proposing or requesting changing Lua, but mainly expressing sympathy for the design goals that Nilson was working towards.

He wants to unify two confusingly similar concepts to reduce common mistakes and errors, and I do too.

Chris