lua-users home
lua-l archive

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


On Tue, Aug 11, 2009 at 6:45 AM, Eike Decker wrote:
> ...wouldn't it be more nice if this would work as well this way:
>
> while true do
>  local line = readline() or break
>  ...
> end

A few Perl-like things along these lines are in [1].

[1] http://lua-users.org/wiki/MetaLuaRecipes