Re:Fusion.js: A Plugin-Based Universal Web Framework
by mediumdeviation on Wednesday August 01, 2018 @07:21PM
(#17667960)
Enums are not JavaScript, and I've never heard of an Enum stage X proposal.
[ Parent
| on HN ]
Re:Fusion.js: A Plugin-Based Universal Web Framework
by sbjs on Wednesday August 01, 2018 @07:28PM
(#17667998)
Oh, you're right!
http://www.typescriptlang.org/play/#src=enum%20Direction%20%...
And yeah this could be valid JavaScript too, having nothing to do with types, but it's not in JS, only TS.
That said, it is a very cool and clever way to set k=v and v=k in an object at the same time!