lua-users home
lua-l archive

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


2015-09-25 4:20 GMT+02:00 Patrick Donnelly <batrick@batbytes.com>:
> Since recently Lua has been trying to slim down (e.g. removing certain
> math functions), perhaps it's time to remove dofile/loadfile, as they
> can be trivially replaced with intuitive one-liners (using io.lines
> features available since Lua 5.2):

ALERT! Intuitive one-liner follows!

> assert(load(io.lines(f, 4096), "@"..f))

Careful here, Patrick! This list has in the past shown some
inability to understand sarcasm!