Scala勉強会第9回 in 渋谷で発表してきました。 まだScalaでがりがりコード書けないので、外の言語からみたScalaの話をしました。 Scala lang evolutionView more presentations from faithandbrave.
Boost Con '09で行われたAndrei Alexandrescuのセッション、「Iterators Must Go」の資料を翻訳してみました。 【原文】 iterators-must-go.pdf 【日本語訳】 iterators-must-go(ja).pdf 【Slideshare】 http://www.slideshare.net/faithandbrave/iterators-mustgoja 訳がおかしいところがあったら教えていただけるとうれしいです。 【修正履歴】 2009/05/15 19:25 コメント欄でturuginaさんから指摘いただいた点を修正 2009/05/18 10:57 コメント欄でportownさんから指摘いただいた点を修正
今日 id:uskz に会ったときに「C++でもMaybeモナドできますよ」って言われたので調べたらこんなのあった Maybe monad in C++ #include <boost/variant.hpp> class Nothing {}; template <class T> class Just { public: T val; Just(T x) : val(x) {} }; template<class T, class F> boost::variant<Nothing, Just<T> > operator>>=(boost::variant<Nothing, Just<T> > x, F f) { return (boost::get<Nothing>(&x)==NULL) ? f(boost::get<Just<T> >(x).val) : Nothing(); }
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
処理を実行中です
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く