On 1/20/15 5:44 AM, Atila Neves wrote:
My buddy Jeff never learns... he sent me a blog post link about Go
development today and I ended up comparing how the bug mentioned in the
blog post wouldn't happen in D:

https://atilanevesoncode.wordpress.com/2015/01/20/type-safety-and-time-intervals-in-d-and-go/

On the question of why that is the way it is, it's because we actually thought of all that shit when designing the time library :) I was a big proponent of not using the same type to mean duration and timestamp, and only allowing sane operations. Jonathan was the same way.

You can see some if it here:

http://forum.dlang.org/thread/[email protected]
http://forum.dlang.org/thread/[email protected]
http://forum.dlang.org/thread/[email protected]


Ah, the nostalgia :)

-Steve

Reply via email to