From: Oliver Bandel <oliver@first.in-berlin.de>
To: John Max Skaller <skaller@ozemail.com.au>
Cc: caml-list@inria.fr
Subject: Re: [Caml-list] Some/None
Date: Thu, 25 Apr 2002 14:13:07 +0200 (MET DST) [thread overview]
Message-ID: <Pine.LNX.3.95.1020425135439.483B-100000@first.in-berlin.de> (raw)
In-Reply-To: <3CC75FF5.5020605@ozemail.com.au>
Hello,
On Thu, 25 Apr 2002, John Max Skaller wrote:
> Oliver Bandel wrote:
>
> >>type file_data =
> >> | Regular of int (* file size in megs *)
> >> | Directory of int (* number of entries *)
> >> | Special
> >> ....
> >>
> >
> >nice idea. :)
> >
>
> Perhaps. I would say designing appropriate types
> and functions for a system is hard, in any language.
>
> The difference with Ocaml is that representing
> your designs is much easier than, say, C or C++.
Yes. I see it.
I have to explore the type-system of Ocaml
and it's facilities more intensive.
It's a wide field.
But I can see, the advantages right now.
But when you have written code in C and Perl
formany years, it's really an unknown land...
C and Perl don't give you results like
"Some 8" or such.
You only have a raw value in C (no matter if it is a
int, char, a function pointer or a pointer to
data of any type (where the types themselves
are never types in theit own right. If using
typedefs in C that is not comparable to the
type-statement of Ocaml.... that's confusing
in the first moment (even if the advantages
will get clearer from time to time))).
It could possible that maybe one day there will be
a C-toplevel, giving back the type of a C-data
(maybe gdb can be used for that). But that is
nothing, what the language itself supports.
So at first contact with Ocaml it seems
strange for C-/Perl-programmers (even
if it's possible to have a slight idea
of what is possible with that typesystem).
> The language is very expressive and yet compact,
> and it is very rarely that I bother representing
> a design on paper before coding .. the code is so
> expressive of the design it usually isn't necessary ..
It's nearly natural language you mean? ;-)
[...]
> Just my usual warning .. ocaml is a powerful drug ..
> its additive ..
I know. I reached the state, where I can acknowledge this.
And I'm prising OCaml wherever I can, even if I only have
a slight insight of it.
Maybe, some weeks or months later I will not ACK that
it's a drug - the typical reaction of a addict people:
"No, I'm not an OCaml-addict. I can stop whith it,
whenever I want to! Really! Believe me! But today I
don't want to stop programming with it... but I could
really, if I wanted to... no, I'Äm not addict..." ;-)
> a one way street .. ask Markus Mottl ..
He's really addict. So he would not say that it's
a drug. ;-)
> you just won't be able to go back to C/C++ afterwards ..
> the withdrawal symptoms are quite deadly .. :-))
:)
I know it.
Even if I stumble in Ocaml right now (but can walk better
than in my last Ocaml-phase, some months ago (I had paused
learning/using it until the english translation of the
O'Reilly book was published in the net...))
I see the many advantages of it, compared to C.
Always when I look back to C-programming, I know,
that programming paradise is not far away when looking
forward to Ocaml. :)
Ciao,
Oliver
P.S.: Why not doing some Ocaml-marketing and send a mail to
Mr. Greeve from the Brave GNU World?
Doesn't it make sense to make it more public...?
Or is it better to wait until the OCaml-book will
be available in the bookshops?
-------------------
To unsubscribe, mail caml-list-request@inria.fr Archives: http://caml.inria.fr
Bug reports: http://caml.inria.fr/bin/caml-bugs FAQ: http://caml.inria.fr/FAQ/
Beginner's list: http://groups.yahoo.com/group/ocaml_beginners
next prev parent reply other threads:[~2002-04-25 12:25 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-04-24 12:48 Oliver Bandel
2002-04-24 13:31 ` Michal Moskal
2002-04-24 14:23 ` Oliver Bandel
2002-04-24 15:43 ` Samuel Lacas
2002-04-24 13:41 ` Markus Mottl
2002-04-24 15:59 ` Oliver Bandel
2002-04-24 13:50 ` Oliver Bandel
2002-04-24 14:08 ` Xavier Leroy
2002-04-24 19:19 ` Oliver Bandel
2002-04-24 14:28 ` Remi VANICAT
2002-04-24 14:55 ` John Max Skaller
2002-04-24 16:49 ` Oliver Bandel
2002-04-25 1:46 ` John Max Skaller
2002-04-25 12:13 ` Oliver Bandel [this message]
2002-04-25 12:34 ` Markus Mottl
2002-04-25 12:53 ` Jérôme Marant
2002-04-25 13:13 ` Markus Mottl
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=Pine.LNX.3.95.1020425135439.483B-100000@first.in-berlin.de \
--to=oliver@first.in-berlin.de \
--cc=caml-list@inria.fr \
--cc=skaller@ozemail.com.au \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).