D equivalent to Rust or Scala's Optional and Result and best practice ?
paul at acheronsoft.com
Tue Oct 19 01:02:24 UTC 2021
On Monday, 18 October 2021 at 16:03:53 UTC, dangbinghoo wrote:
> It seems that now we have `Optional` and `Result` packages in
> Dub, are these enough or fully equal to Rust or Scala's
> error-handling and pattern-matching?
> if these are enough for real-code, any best practice advice?
There is https://code.dlang.org/packages/optional plus a couple
more available in packages.
More information about the Digitalmars-d-learn