It would be useful to be able to instantiate types without having to type new. For generic types (or any other type where the type expression is not just a qualified identifier) this is awkward, because it would make expression parsing ambiguous (#883), but we could still support it for non generic types. Plus, we could support type aliases for generic type specializations, and those aliases could be instantiated without new.
class THING is
value: string;
init(value: string) is self.value = value; si
si
...
let t = THING("test");
It would be useful to be able to instantiate types without having to type
new
. For generic types (or any other type where the type expression is not just a qualified identifier) this is awkward, because it would make expression parsing ambiguous (#883), but we could still support it for non generic types. Plus, we could support type aliases for generic type specializations, and those aliases could be instantiated without new.