
21 Dec
2009
21 Dec
'09
2:21 a.m.
On Sun, Dec 20, 2009 at 7:11 PM, OvermindDL1 <overminddl1@gmail.com> wrote:
On Sun, Dec 20, 2009 at 6:48 PM, Arnaud Masserann <arnaud1602@gmail.com> wrote:
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 : http://www.haskell.org/ghc/docs/6.10.4/html/libraries/base/Prelude.html#t%3A... 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: http://pastebin.com/m24a84c01 How is Maybe different? Does it introduce any extra functionality?