3 ms·
It would be really handy if C++ supported both its existing typedef behavior (aliasing) and the Pascal kind (distinct copy). I wonder if any other strongly typ
by humbledrone 16y ago
It would be really handy if C++ supported both its existing typedef behavior (aliasing) and the Pascal kind (distinct copy). I wonder if any other strongly typed languages (e.g. Haskell) support both kinds of behavior.
- dododo 16y agohaskell does support it. c style: type Foo = Int pascal style: newtype Foo = Foo Int