A workshop on monads with C++14
github.com
A workshop on monads with C++14
1–9 of 9 posts
Re: A workshop on monads with C++14
#2Re: A workshop on monads with C++14
#3Cool stuff though.
Re: A workshop on monads with C++14
#4And the award for least descriptive commit log of all time goes to... Cool stuff though.
git commit -m "`date`"Re: A workshop on monads with C++14
#5 // must be overloaded
template class M,typename T,typename F>
auto operator>>=(const M& m, F f)->decltype(f(std::declval()));
Could someone please point out to me why exactly this is useful and why I would want to code like this? Does it help me solve specific types of problems?Re: A workshop on monads with C++14
#6// must be overloaded template class M,typename T,typename F> auto operator>>=(const M & m, F f)->decltype(f(std::declval ())); Could someone please point out to me why exactly this is useful and why I would want to code like this? Does it help me solve specific types of problems?
Re: A workshop on monads with C++14
#7// must be overloaded template class M,typename T,typename F> auto operator>>=(const M & m, F f)->decltype(f(std::declval ())); Could someone please point out to me why exactly this is useful and why I would want to code like this? Does it help me solve specific types of problems?
Re: A workshop on monads with C++14
#8Template template templates. I didn't know that was thing.
Re: A workshop on monads with C++14
#9// must be overloaded template class M,typename T,typename F> auto operator>>=(const M & m, F f)->decltype(f(std::declval ())); Could someone please point out to me why exactly this is useful and why I would want to code like this? Does it help me solve specific types of problems?
So why not just use Haskell?