Closed Peekmo closed 8 years ago
I also wanted to add this, but I was not really sure, because we are adding more reserwed keywords.
const
keyword is meaningfull, and it helps code clarity no?
Yes, but in Haxe, you can also have inline static function, not only variable.
In fact, but "const" concept exists in many languages, and the translation in haxe could be "public static inline var", and it would be a nice shortcut.
For inline static function, just keep things like that perhaps ? I don't really know if there's a name for this kind a functions..
As a side note, if you worry about reserved keywords, perhaps could we remove next
do
, they do not add so much readability.
do is for anonymous functions, and next is because of more Ruby-like syntax.
Not going to add const keyword to not flood the namespace.
Inexisting in haxe, I added the keyword
const
that is a shortcut forpublic static inline var
.Regards, Peekmo