|
|
|
|
|
by valenterry
1316 days ago
|
|
> It's impossible for the compiler to do anything with x without adding some kind of runtime type tag. Yes, in this particular case that's true. If the developer tries to do anything except maybe printing it for debug then the compiler will tell the developer so and the developer will have to switch to sumtypes / wrap it just like it is done in OCaml by default. |
|