From: Philippe Wang <lists@philippewang.info>
To: Jon Harrop <jon@ffconsultancy.com>, ocaml ml <caml-list@inria.fr>
Subject: Re: [Caml-list] let int = ?([' ' '\t'] '-') digits+
Date: Fri, 29 Jun 2007 20:21:21 +0200 [thread overview]
Message-ID: <46854DA1.9000403@philippewang.info> (raw)
In-Reply-To: <200706291740.06735.jon@ffconsultancy.com>
Jon Harrop wrote:
> On Friday 29 June 2007 16:56:45 Robert C Fischer wrote:
>
>> How would I write f - 1 to mean "one less than the value of f"?
>>
>
> As:
>
> f - 1
>
> The space before the digit means that it will not match this regexp.
>
> Or:
>
> f-1
>
> The lack of a space before the "-" means that it will not match this regexp.
I think it's quite too hard to explain, and it leads you to make
mistakes too easily.
By the way, I wonder how you could explain that to students learning the
language...
What I think is that :
- whether they know nothing about programming : then they end up
thinking it's quite too ugly...
- whether they already know something about programming : they would
think that the language is ugly and stick to those they already know...
Anyways, I really wouldn't want that.
One should not have to spend ten years to learn a programming language,
just because of such tricks.
--
Philippe Wang
mail[at]philippewang.info
next prev parent reply other threads:[~2007-06-29 18:21 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-06-29 15:39 Jon Harrop
2007-06-29 15:56 ` [Caml-list] " Robert C Fischer
2007-06-29 16:32 ` Brian Hurt
2007-06-29 16:40 ` Jon Harrop
2007-06-29 18:21 ` Philippe Wang [this message]
2007-06-29 15:57 ` pzimmer
2007-06-29 16:35 ` Robert C Fischer
2007-06-29 16:41 ` Jon Harrop
2007-06-29 17:57 ` Stefan Monnier
2007-06-29 18:11 ` [Caml-list] " Robert C Fischer
2007-06-29 21:05 ` Jon Harrop
2007-06-29 18:29 ` [Caml-list] " skaller
2007-06-29 18:53 ` Pal-Kristian Engstad
2007-06-29 19:21 ` Daniel Bünzli
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=46854DA1.9000403@philippewang.info \
--to=lists@philippewang.info \
--cc=caml-list@inria.fr \
--cc=jon@ffconsultancy.com \
/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