2018-01-28 19:09 GMT-03:00 degski
On 28 January 2018 at 16:01, Vinícius dos Santos Oliveira < vini.ipsmaker@gmail.com> wrote:
I don't know boost::cnv::spirit. Can you briefly describe it? Do you register the callbacks/actions and let it take care of separating success case and failures case?
Boost.Spirit does a lot (most of it over my pay-grade), but you'll get the gist of the bit I was referring to here http://www.boost.org/doc/libs/1_66_0/libs/convert/doc/html/boost_convert/get... ...
Okay, it is very beautiful. It has plenty of options. You can set precision on floating point conversion and so on, plenty and plenty of options... and how does this add to the topic? The most I can see about error handling is a throwing value function and a `value_or` function. Do you want a `value_or` function? Is this what you're trying to tell us? If I understood correctly, previous Outcome version had monadic operations (which is much more complex than a value_or function) and I'm pretty confident it provided something like that (maybe under the name unwrap_or). Boost.Outcome will provide that for free to any facility you're going to implement. Be it lexical conversion of what not. Can you elaborate on your point? If I'm left alone I'll miss your point. It's becoming confusing the more you go. -- Vinícius dos Santos Oliveira https://vinipsmaker.github.io/