* [Caml-list] "Modules Matter Most"
@ 2012-02-27 14:38 oliver
2012-02-28 12:46 ` AUGER Cédric
0 siblings, 1 reply; 5+ messages in thread
From: oliver @ 2012-02-27 14:38 UTC (permalink / raw)
To: caml-list
Hello,
this article I like.
I also have experienced, that thinking in types
(or: thinking in signatures) give a big advantage
on planning a program, and later implementing it.
Types make things very clear: you know what is input
and what output and how things need to fit tigether,
and what kind of signature is needed to maybe fill
a gap between an input and an output module... just look
at the missing link as a signature.
Thie article also mentiones modules as a key point
of OCaml, and I fully agree here:
Modules Matter Most
http://existentialtype.wordpress.com/2011/04/16/modules-matter-most/
Ciao,
Oliver
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [Caml-list] "Modules Matter Most"
2012-02-27 14:38 [Caml-list] "Modules Matter Most" oliver
@ 2012-02-28 12:46 ` AUGER Cédric
2012-02-28 19:42 ` Abdallah Saffidine
0 siblings, 1 reply; 5+ messages in thread
From: AUGER Cédric @ 2012-02-28 12:46 UTC (permalink / raw)
To: oliver; +Cc: caml-list
Le Mon, 27 Feb 2012 15:38:09 +0100,
oliver <oliver@first.in-berlin.de> a écrit :
> Hello,
>
>
> this article I like.
> I also have experienced, that thinking in types
> (or: thinking in signatures) give a big advantage
> on planning a program, and later implementing it.
>
> Types make things very clear: you know what is input
> and what output and how things need to fit tigether,
> and what kind of signature is needed to maybe fill
> a gap between an input and an output module... just look
> at the missing link as a signature.
>
> Thie article also mentiones modules as a key point
> of OCaml, and I fully agree here:
>
> Modules Matter Most
> http://existentialtype.wordpress.com/2011/04/16/modules-matter-most/
>
>
> Ciao,
> Oliver
>
I find the posts on this blogs too much Ocaml biased. Ok, haskell has
not modules and it is somewhat missing, but using TypeFamilies, you can
emulate modules (and even 1st order modules which are available in Ocaml
only since 3.11 or 3.12), and in the other hand there is still not yet
any convenient way to have type classes in Ocaml. And it is not very
often that I would like to implement a module where a simple type class
wouldn't fit.
Are type classes planned in the future (and if not, what are the
reasons not to have it)?.
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2012-03-05 8:55 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-02-27 14:38 [Caml-list] "Modules Matter Most" oliver
2012-02-28 12:46 ` AUGER Cédric
2012-02-28 19:42 ` Abdallah Saffidine
2012-03-05 2:25 ` Milan Stanojević
2012-03-05 8:57 ` AUGER Cédric
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox