[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Is dofile really called for anymore?
- From: "Stuart P. Bentley" <stuart@...>
- Date: Fri, 02 Apr 2010 08:49:16 -0600
If the accepted idiom for doing a string is assert(loadstring(...))(), why
not remove dofile and just use assert(loadfile(...))() in its place? The
only reason I can see dofile() having its own function is for opening Lua
libraries, from before require() was introduced.