PlutoLang / Pluto

A superset of Lua 5.4 with a focus on general-purpose programming.
https://pluto-lang.org
MIT License
367 stars 22 forks source link

Autodetect keyword state when no preference was declared #813

Closed Sainan closed 5 months ago

Sainan commented 5 months ago

For example

class Human end
local enum = {}

Should be implied to have pluto_use class = true, enum = false.

And obviously an explicit signal by the user, scripter, or environment should overwrite this. This should just be a more reasonable default behavior in the absence of any of these signals.