Re:Revenge of the Types
by dom96 on Sunday August 24, 2014 @06:45PM
(#8219912)
Nimrod features distinct types (http://build.nimrod-lang.org/docs/manual.html#distinct-type) which allow you to implement something like this. Here is an example: https://github.com/def-/units/blob/master/units.nim#L220, I don't think it's complete yet though.
[ Parent
| on HN ]
There are no comments on this comment yet.