Arantium Maestum

プログラミング、囲碁、読書の話題

2018-03-12から1日間の記事一覧

Thinking Functionally with Haskell勉強メモ: 第3章続続 integer/floatとInteger/Float

3.149 :: Fractional a => a This type and the earlier type Num a => a for 42 explains why we can form a legitimate expression such as 42 + 3.149, adding an integer to a floating-point number. Both types are members of the Num class and all …

Effective C++勉強メモ: Item 18 間違った使い方をしにくいインタフェース

リソース管理の部分は少し後回しで、項目をいくつか飛ばして18番目。 いいインタフェースとは、という項目で大きく分けて: 引数をClass/Struct化 インタフェースは統一しよう 戻り値にスマートポインタを使おう 上記三点の話題が挙がっている。 引数をClass…