|
Boost : |
From: Kevlin Henney (kevlin_at_[hidden])
Date: 2001-07-20 11:51:10
> From: "Peter Dimov" <pdimov_at_[hidden]>
[...]
>This is a discriminated union, like 'any'. The only difference is that 'any'
>accepts any type + void, while your proposed class accepts only T or void.
>
>People that program in discriminated-union-capable languages would like your
>proposal. :-) Do you think that optional<T> would be a better name?
'optional' would be my preferred name as well. IIRC, Barton & Nackman
called such a type 'Fallible'.
Kevlin
____________________________________________________________
Kevlin Henney phone: +44 117 942 2990
mailto:kevlin_at_[hidden] mobile: +44 7801 073 508
http://www.curbralan.com fax: +44 870 052 2289
Curbralan: Consultancy + Training + Development + Review
____________________________________________________________
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk