Browse thread
stl?
[
Home
]
[ Index:
by date
|
by threads
]
[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
| Date: | -- (:) |
| From: | Yoann Padioleau <padator@w...> |
| Subject: | Re: [Caml-list] stl? |
Brian Hurt <bhurt@spnz.org> writes: > On Tue, 3 Mar 2009, Jon Harrop wrote: > >> Functors give >> you the same capability in OCaml but they are rarely used precisely because >> the functionality is not very useful. > > I think I disagree with this. I think functors aren't used very much > in Ocaml because: 0) they are intrusive! putting code inside a functor may entail the need to modify also lots of related code. That's one of the worst thing for a programming feature. Your modification can not be local. I hate monad for the same reason, and I like ocaml exception mechanism, and using sometimes global refs for the same reason. > 1) They're a big, scary name, and I'am a man, I am not scared. > 2) They're slightly less efficient. I don't care so much about that anyway. >