Comments (8)
Yes! Wish I knew of their existence before :)
from hxnodejs.
http://haxe.org/manual/types-abstract-enum.html
from hxnodejs.
Note : that's only if custom user events are not possible
from hxnodejs.
They are possible, so we have to use String
as event name, but we still can define event sets with enum abstracts instead of classes.
from hxnodejs.
I think the enums should only serve as shortcut to the user.
The emitter interface shoul always be String though.
Em 06/10/2014 09:28, "Dan Korostelev" [email protected] escreveu:
They are possible, so we have to use String as event name, but we still
can define event sets with enum abstracts instead of classes.—
Reply to this email directly or view it on GitHub
#1 (comment)
.
from hxnodejs.
If you use @:enum abstract Something(String) from String
, we can still allow custom strings while still being able to benefit from the enumerated types as needed
from hxnodejs.
Yes.
Will do.
2014-10-06 15:13 GMT-03:00 Cauê Waneck [email protected]:
If you use @:enum abstract Something(String) from String, we can still
allow custom strings while still being able to benefit from the enumerated
types as needed—
Reply to this email directly or view it on GitHub
#1 (comment)
.
[image: Imagem inline 1]
from hxnodejs.
Most of those are already changed to @:enum abstracts. Closing this one.
from hxnodejs.
Related Issues (20)
- [discussion] simplify document comment HOT 3
- Update to v12 API HOT 5
- Investigate if dts2hx can be used to generate the externs
- [Feature request] Add `util.format` function HOT 1
- [Feature request] Add `fs.promises` functions
- [Feature request] Add `append` method to `sys.io.File` class HOT 1
- All `js.node.Os` methods should be static
- HTTPS requests without options generates invalid code HOT 1
- Printing the result of hxToBytes will hang the runtime HOT 2
- Sys.getChar HOT 2
- haxe.io.Bytes.getData(): BytesData != ArrayBuffer HOT 2
- implement sys.io.Process HOT 4
- it wont work? HOT 8
- [nodejs] Enhancement: Expose headers in NodeJsHttp
- Ignores `sys` conditional compilation block HOT 1
- hxnodejs does not fully implement sys.net.Socket (needed for sys.Http) HOT 3
- Migrate CI to github actions
- Change uses of @:enum abstract to get rid of deprecation warnings HOT 1
- Release to haxelib following pr #190 HOT 3
- Haxe 4.3 `@:enum abstract` is deprecated
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from hxnodejs.