Subject: Re: [boost] What about "Maybe" ?
From: Arnaud Masserann (arnaud1602_at_[hidden])
Date: 2009-12-21 06:44:47
As a matter of fact, none :)
The weird thing here is that google "boost maybe" or even "boost maybe
haskell" don't return anything, but here's an excerpt from Boost.Optional
" There is precedent for a discriminated union as a model for an optional
value: the Haskell <http://www.haskell.org/> *Maybe* built-in type
constructor. Thus, a discriminated union T+nil_t serves as a conceptual
Anyway, glad to hear it exists :)
On Mon, Dec 21, 2009 at 3:21 AM, OvermindDL1 <overminddl1_at_[hidden]> wrote:
> On Sun, Dec 20, 2009 at 7:11 PM, OvermindDL1 <overminddl1_at_[hidden]>
> > On Sun, Dec 20, 2009 at 6:48 PM, Arnaud Masserann <arnaud1602_at_[hidden]>
> >> Hi,
> >> Is there any interest for a "Maybe" utility class, like the one in
> Haskell ?
> >> For those who don't know about Maybe, here is the Haskell ref :
> >> And a code snippet showing its use :
> >> http://pastebin.com/m3a590d6e
> > It looks like Boost.Optional from how it is used in your pastebin
> > snippet. How is it different from Boost.Optional?
> For example, here is your snippet, copied and altered to use the
> Boost.Optional form:
> How is Maybe different? Does it introduce any extra functionality?
> Unsubscribe & other changes:
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk