[OT] Some neat ideas from the Kotlin language
Kagamin via Digitalmars-d
digitalmars-d at puremagic.com
Thu Feb 25 04:22:31 PST 2016
On Wednesday, 24 February 2016 at 14:50:37 UTC, Andrei
Alexandrescu wrote:
> Probably we can do the same in a library: never allow the value
> out of an Option, but provide a visitor with two aliases
> (ham/spam).
Rust provides value accessor for Option:
https://doc.rust-lang.org/stable/std/option/enum.Option.html#method.unwrap
More information about the Digitalmars-d
mailing list