From: Philippe Wang <mail@philippewang.info>
To: Lauri Alanko <la@iki.fi>
Cc: caml-list@inria.fr
Subject: Re: [Caml-list] Capitalized source file names
Date: Sun, 26 Dec 2010 22:09:22 +0100 [thread overview]
Message-ID: <AANLkTik2f6R6ATOpUydAv9ud+KHjNdLdwE=_x+HU-4h_@mail.gmail.com> (raw)
In-Reply-To: <20101226203711.GA10137@melkinpaasi.cs.helsinki.fi>
> As things stand, is there any reason (besides uniformity with existing
> code) why one shouldn't use capitalized source file names nowadays?
I feel like saying that people tend to be lazy, especially ml-programmers ;-)
So, unless they are forced to press 'shift' key when giving a name to
a new file, they usually won't.
I believe OCaml will never force programmers to give capitalized
source file names (I might be wrong).
The only way I see for that to happen would be to provide a new
Caml-frontend, which would force that. But then, nothing guarantees
that it'll be used...
Oh, another idea: ask **teachers** to teach this practice! :-)
(I'll try to teach this practice if I teach Caml again, which might happen)
--
Philippe Wang
mail@philippewang.info
On Sun, Dec 26, 2010 at 9:37 PM, Lauri Alanko <la@iki.fi> wrote:
> Traditionally, OCaml source files have been named to start with
> lowercase letters, even though they define modules whose names begin
> with uppercase letters: the definition of module FooBar goes in
> fooBar.ml. This has always seemed unintuitive to me.
>
> I'm not sure if this convention has been forced in the past, but
> nowadays the entire toolchain seems to support capitalized filenames:
> you can put the definition of FooBar in FooBar.ml, and everything just
> works. This seems much more natural.
>
> As things stand, is there any reason (besides uniformity with existing
> code) why one shouldn't use capitalized source file names nowadays?
>
>
> Lauri
>
next prev parent reply other threads:[~2010-12-26 21:09 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-12-26 20:37 Lauri Alanko
2010-12-26 21:09 ` Philippe Wang [this message]
2010-12-27 9:44 ` David Allsopp
2010-12-26 21:26 ` Lukasz Stafiniak
2010-12-27 9:44 ` David Allsopp
2010-12-30 12:52 ` Florent Ouchet
2010-12-26 23:21 ` [Caml-list] " Sylvain Le Gall
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='AANLkTik2f6R6ATOpUydAv9ud+KHjNdLdwE=_x+HU-4h_@mail.gmail.com' \
--to=mail@philippewang.info \
--cc=caml-list@inria.fr \
--cc=la@iki.fi \
/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