Option and Result [was Integration tests]
Russel Winder
russel at winder.org.uk
Thu Apr 23 11:19:08 UTC 2020
On Tue, 2020-04-21 at 21:29 +0000, aliak via Digitalmars-d-learn wrote:
> On Tuesday, 21 April 2020 at 16:30:15 UTC, Russel Winder wrote:
[…]
>
> There've been a few attempts at building a Result type:
>
> https://code.dlang.org/search?q=expect
> And here:
> https://github.com/aliak00/ddash/blob/master/utils/source/ddash/utils/expect.d
>
> > Is Option intended for adding to Phobos?
>
> Not that I am aware of. There was an attempt to PR an Option type
> way back when which never made it:
> https://github.com/dlang/phobos/pull/3915
>
> There was a post here:
> https://forum.dlang.org/thread/hqtdekjtdgbhhbjgyvvo@forum.dlang.org
Perhaps there can be one implementation package of Nullable, Option,
and Result that is in the Dub repository that everyone can use even though they really ought to be part of Phobos.
--
Russel.
===========================================
Dr Russel Winder t: +44 20 7585 2200
41 Buckmaster Road m: +44 7770 465 077
London SW11 1EN, UK w: www.russel.org.uk
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: This is a digitally signed message part
URL: <http://lists.puremagic.com/pipermail/digitalmars-d-learn/attachments/20200423/65deb34a/attachment.sig>
More information about the Digitalmars-d-learn
mailing list