Re: Case sensitivity
- From: "Julian V. Noble" <jvn@xxxxxxxxxxxx>
- Date: Wed, 30 Aug 2006 09:24:42 -0400
David N. Williams wrote:
vandyswa wrote:
> [...]
>
> So I would propose that Forth move towards lower case standard control
> structure words, and case sensitivity. A standard transitional
> facility to accept the upper case counterparts (but not, for instance,
> mixed case variations) would be required. ForthOS uses lower case
> words with case sensitivity. Rather than support the upper case words
> directly, I have a UNIX sed (stream editor) script which I apply to
> source I wish to import.
Hummn! It's a fairly common convention around here to write
control structure words (IF, THEN, BEGIN, EXIT, etc.) in upper
case, and most of the rest in lower case, which nicely
emphasizes the logical flow. And there are other types of words
that can benefit from upper case emphasis.
But nobody wants to force such conventions on other people,
which works when the underlying system is caseless.
-- David
I tend to reserve lower case for _my_ definitions, UC for the
pre-defined words. Sometimes I include caps in compound names
(which I usually try to avoid but can't entirely because I
can't always think of a good simple name). A case-sensitive
Forth would screw all this up. Why not add the words
CASE-SENSITIVE and CASE-INSENSITIVE
to the Standard? That at least gives us a choice and breaks
no existing code.
--
Julian V. Noble
Professor Emeritus of Physics
University of Virginia
.
- References:
- Case sensitivity
- From: Stephen Pelc
- Re: Case sensitivity
- From: Alex McDonald
- Re: Case sensitivity
- From: vandyswa
- Re: Case sensitivity
- From: David N. Williams
- Case sensitivity
- Prev by Date: Re: RfD - SYNONYM
- Next by Date: Re: The IMMEDIATE mess
- Previous by thread: Re: Case sensitivity
- Next by thread: Re: Case sensitivity
- Index(es):
Relevant Pages
|