5 Apr
2022
5 Apr
'22
11:40 a.m.
On Mon, Apr 04, 2022 at 01:53:49PM +1000, Chris Angelico wrote:
And that's exactly why I think that the *concept* of units could be added to the language, with some syntax and low-level semantics, but the actual units themselves belong in libraries.
+1 on that. I'm not even sure about the need for syntax beyond what we already have. Yes, it would be nice to write: speed = 15 ft 3 in / 3 sec but is it really so painful to use existing syntax? speed = (15*ft + 3*in) / (3*sec) I don't think so. -- Steve