lua-users home
lua-l archive

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

Cosmin Apreutesei wrote:

Guess "with" is reserved for RAII (I wouldn't like it, but see [1][2])
:) Otherwise `in` feels more "immersive" :)

That leaves 'using', which would seem a logical keyword to choose. The downside would be that it would add a new keyword, the upside would be that it eliminates a keyword overload. Or am I the only one that feels that 'in' isn't quite right? 'Using' just has a better ring in my opinion.


PS: Personally I always felt comfortable using a :Release()/:Delete() explicit system for releasing resources deterministically, I wouldn't see why we'd clutter up Lua with explicit RAII keywords. I like the fact that Lua has such a small vocabulary but is so expressive.