Open SpinnySpiwal opened 1 year ago
Agreed. I think this is a good feature. It allows Prometheus to obfuscate more LuaU code.
Implementing this would require to rewrite some of the code.
The following files would definitely need to be modified: visitast.lua compiler.lua parser.lua
There may be more.
I currently don't have time to work on this, but I would accept a pull request if somebody wanted to work on this.
I Suggest adding Ternary Operators support for the following reasons:
For example, Ternary operators in Luau:
However, The above code snippet is much more compact compared to it's Lua 5.1 alternative:
Thank you for taking the time to read through my suggestion.