DEV Community

Discussion on: Using files in LuaRT

Collapse
 
tilkinsc profile image
Cody Tilkins • Edited

As the author of LuaConsole, I know how bare bones are dated the Lua IO library is. LuaRT seems a welcome addition. I like the direct open and close statements, but I do not like the passing of strings for parameters other than "rb" for example.

Collapse
 
samyeyo profile image
Sam • Edited

Thank you so much for that comment !
"rb" "rw" and so on are from the "C world". As LuaRT philosophy is to be as much possible independent to C, I preferred the words "read" "write" "append" to approach Lua readability, but that might change in the future depending on community feedback :)

Collapse
 
tilkinsc profile image
Cody Tilkins • Edited

Not so much "C world" its a commonly used paradigm. My favorite IO library is linux and ruby flavored. Back when I was developing things on the PSP.