News for hackers. Stuff that matters.
Re:TypeScript: Branded Types by recursive on Wednesday April 24, 2024 @03:22PM (#40148453)
Static typing information isn't retained at runtime. e.g.

    ListInterface list = new ConcreteList();
    let runtimeType = GetTypeOf(list); // will be `ConcreteList`, not `ListInterface`
This is an imaginary java-like language, but I'm not aware of a statically typed language that gives you the static type resolutions at run-time, outside of cases like implicit generic resolutions and things like that.

There are no comments on this comment yet.