lua-users home
lua-l archive

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


on 2/25/05 3:59 AM, PA at petite.abeille@gmail.com wrote:

> Along the same line of though... I would rather see the colon notation
> deprecated all together... as it doesn't add anything which cannot be
> done with the regular syntax... plus it introduce inconsistency and
> confusion in Lua's core libraries... e.g. io seems to gratuitously
> favor the colon notation while all the other core libraries stick with
> the dot...

The colon saves you from double evaluation of the receiver or creating your
own temporary variable.

Mark