2008-09-04から1日間の記事一覧

OCaml の type alias (type synonym) と non-parametric polymorphism

OCaml では普通のデータ型の定義 (type t = Foo | Bar や type t = { foo : int; bar : float }) とデータ型の別名宣言 (type alias もしくは type synonym: type int2 = int * int) の区別が希薄になっています。