4 ms·
You can already implement this in any language with strong typing, like C++ or Rust or OCaml or Haskell. I guess the syntax might be more verbose, so you would
by andrepd 5y ago
You can already implement this in any language with strong typing, like C++ or Rust or OCaml or Haskell. I guess the syntax might be more verbose, so you would have to write inches(12) rather than 12 inches.
- TheMonarchist 5y agoC++ has user defined literals, so you could write 12_inch.