I noticed that several of our source files use the "const" keyword, which is not supported by our parser. What is the semantics of "const" and should Tachyon support it?
Marc
Afficher les réponses par date
It's a V8-specific extension, as far as I know. In the global scope, it creates an immutable binding on the global object. Inside of a function body, it behaves like a constant variable, which may not be accessible before initialization (to be tested).
Supporting it for global variables would be easy, but supporting it for locals might complicate things a little bit. Whether we want to support it or not is a question of whether we want to implement a non-standard extensions now, and whether we think that this makes our code safer (less-likely to have bugs) or not.
- Maxime
I noticed that several of our source files use the "const" keyword, which is not supported by our parser. What is the semantics of "const" and should Tachyon support it?
Marc
Tachyon-list mailing list Tachyon-list@iro.umontreal.ca https://webmail.iro.umontreal.ca/mailman/listinfo/tachyon-list