lua-users home
lua-l archive

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

Speaking of guilt-by-naming, I was wondering if the class stuff ought
to have explicitly-ml naming, like mlclass(). Other people have sucked
up the words "object" and "class" in their systems; I think
emphasizing ml.mlclass is just *an* object system rather than *the*
object system would ease adoption. It's not like you're going to be
typing mlclass() a lot....

There is absolutely nothing that forces one to say `require"ml".import()`.
In a long program, one should say `ml=require"ml"` and import (or
assign to a local) only what you use really often.  The extra period gives
greater emphasis than a prefix and should not tire out the programmer
too much.  It's not like you're going to be typing ml.class() a lot....