Skip to content
This repository has been archived by the owner on Mar 12, 2020. It is now read-only.

keyword variables #13

Open
nadako opened this issue Mar 10, 2015 · 2 comments
Open

keyword variables #13

nadako opened this issue Mar 10, 2015 · 2 comments

Comments

@nadako
Copy link
Collaborator

nadako commented Mar 10, 2015

TypeScript apparently allows to use keywords as a variable/function name (e.g. declare var class). We should handle haxe keywords somehow. I'm not sure whether @:native is enough for that (e.g. @:native("class") var class_:Dynamic;) or we should generate a property with inline getters/setters (e.g. var class_(get,set):Dynamic; inline function get_class_():Dynamic return untyped this["class"];)

@nadako
Copy link
Collaborator Author

nadako commented Mar 10, 2015

btw, it's not just keywords, but also things like $scope.

@back2dos
Copy link

If @:native handles that well, then let's use it. The result should be a lot easier to grasp for the reader.

kLabz pushed a commit to kLabz/ts2hx that referenced this issue May 25, 2018
Public access for all non-private field
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants