possible minor improvement (suggestion)

7 views
Skip to first unread message

Matej Kosik

unread,
Jan 24, 2012, 3:13:58 PM1/24/12
to bitstring
Hello,

At the moment Bitstring.t is not an abstract type. I do not think this
is ideal.

The programmer now sees more than he needs to see.
Ocaml type-error messages (which could be really tricky) are important
and if we might want to always see "Bitstring.t" instead of the
occasional "string * int * int".

E.g.

Bitstring.t -> Bitstring.t

is easier to understand than:

string * int * int -> string * int * int
Reply all
Reply to author
Forward
0 new messages