WAWAWA wrote: ↑Sat Aug 14, 2021 8:38 pm
Oh, alright, but I need a terminal emulator, LV-100 doesn't fit my needs as it can't even accept user input.
https://github.com/Vovkiv/love-console
Well, it's not answer to your question, but you may found that useful
Maybe from this you can understand how you can implement that terminal-like system
WAWAWA wrote: ↑Thu Aug 19, 2021 3:06 pm
I guess I am not clear enough, I mean, for example Terminal.VARIABLE, maybe name it Terminal.variable or Terminal.Variable instead?
Some(most) people like using all caps for constants and I think that's a constant. If you really don't like it you could go through the library and change it yourself. If the library's not big it should be easy
The risk I took was calculated,
but man, am I bad at math.
WAWAWA wrote: ↑Thu Aug 19, 2021 3:06 pm
I guess I am not clear enough, I mean, for example Terminal.VARIABLE, maybe name it Terminal.variable or Terminal.Variable instead?
Uh
Why?
If you wish, fork that library and change whatever you want
Like, it's not even my library
I just forked original and added utf-8 support (so if you write non ascii symbols the library won't crash and will work as intended), and other small fixes
also, you may want to check http://lua-users.org/wiki/LuaStyleGuide and http://kiki.to/blog/2014/03/30/rule-1-do-what-lua-does/ to understand why author chose that naming instead of other
WAWAWA wrote: ↑Thu Aug 19, 2021 3:06 pm
I guess I am not clear enough, I mean, for example Terminal.VARIABLE, maybe name it Terminal.variable or Terminal.Variable instead?
Some(most) people like using all caps for constants and I think that's a constant. If you really don't like it you could go through the library and change it yourself. If the library's not big it should be easy
They aren't constants, if they were I would understand but they are not constants.