5
lorentz
4y

For fuck's sake Microsoft, why on Earth do you announce a half-done feature? Was this an idea from marketing? Upper management? I am fairly certain that nobody who actually writes code for a living would have ever approved releasing a rushed feature to a TYPE SYSTEM.

Comments
  • 2
    The error is about not being able to assign a string to a `track${string}`, because `track${key}` is obviously of type string and nothing else.
  • 2
    And yeah, the expression _can_ be explicitly cast to a `track${string}`, Typescript just doesn't do it by itself because ¯\_(ツ)_/¯
  • 4
    As far as I recall Microsoft always released unfinished products...
  • 3
    @dder no no no. That's a wrong way to think of.
    It's released for 'the community'.
  • 1
    The whole feature feels super weird to me tbh.
  • 1
    @DevLivesMatter It is but since string abuse is natural in JS it's definitely necessary. The way I see it, the goal of Typescript is to feel like a natural addition to JS without changing the JS code itself.
  • 0
    @homo-lorens we should start coding in TS and compiling to machine code or at least Wasm instead of transpiling to JS and interpret it. -my opinion.

    @phillip I think TS is pretty good compared to other MS products.
    But I was actually serious about them usually releasing unfinished shit, just to catch up. See Windows for example.
Add Comment