News for hackers. Stuff that matters.
Re:TypeScript enums: use cases and alternatives by n144q on Monday January 20, 2025 @08:58AM (#42768771)
That's a stage 1 proposal that has barely gained any traction since its release. In fact it hasn't been updated for quite a while (with "real" content changes). I wouldn't make decisions for my current code based on something that probably will never happen in the future.

https://github.com/tc39/proposal-type-annotations/commits/ma...

Re:TypeScript enums: use cases and alternatives by runarberg on Monday January 20, 2025 @10:32AM (#42769668)
TC-39 is kind of lame at the moment. I can’t imagine they will stay this lame forever. There are some reasonable voices inside TC-39, so even thought currently the lame voices at the committee are more powerful, that could change at any moment.
Re:TypeScript enums: use cases and alternatives by eyelidlessness on Monday January 20, 2025 @12:53PM (#42771198)
It’s moving slowly, but I think it’s almost inevitable. Type annotations are generally gaining or maintaining their already widespread popularity, and bringing them into the language syntax would just be an acknowledgment of that fact. I think the only thing that might hold that back is the proposal’s commitment to non-TypeScript use cases, which while magnanimous is a huge opportunity for the kinds of bike shedding that might tank a proposal like it.