Re:Rust: Systems Programming for Everyone
by girvo on Saturday August 20, 2016 @10:05AM
(#12326653)
Which is interesting, because I implemented Optional<T> (well, Maybe<T>) in Nim v0.14 in 20 lines of code in a single evening, to see how difficult it would be!
[ Parent
| on HN ]
Re:Rust: Systems Programming for Everyone
by gpderetta on Saturday August 20, 2016 @11:29AM
(#12326988)
The reason for the complexity of that implementation are compiler bugs/nonconfromance workarounds, a fully constexpr implementation and attempt to match a standard spec.
> a fully constexpr implementation
That's actually simpler to do in Nim than you'd think, but I understand what you mean. I might expand my implementation to be const and see how complex it makes it!