On 12/4/2015 2:48 PM, Andrei Alexandrescu wrote:
On 12/04/2015 03:43 PM, Walter Bright wrote:
On 12/4/2015 10:49 AM, Dmitry Olshansky wrote:
Was vaguely terrified reading this whole thread until hitting this
gem. Seems
like a creative use for UDA.
Yeah, I think it puts UDA on the map!
Instead of string arguments, though, I suggest enums.
"Even better".
http://dpaste.dzfl.pl/50340e189f92
That code is actually remarkably complete, with algebra and remarkable
constants.
Pretty crazy, yo. Thanks all for the great ideas. D is a remarkable language.
This is very similar to the si units program Oskar Linde wrote back in 2006.
Anyhow, this is very cool and should:
1. have an article written about it
2. get its own Phobos module