Re: Case sensitivity



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
.



Relevant Pages

  • Re: Case sensitivity
    ... > So I would propose that Forth move towards lower case standard control ... > structure words, and case sensitivity. ... Rather than support the upper case words ... control structure words in upper ...
    (comp.lang.forth)
  • Re: Test Results Today and a Question
    ... with a stethoscope is one standard. ... gold standard of blood pressure, despite the fact that it isn't really ... an accurate way of measuring what you want to know. ... repeatability and sensitivity. ...
    (alt.support.diabetes)
  • Re: Does Anyone Understand Matching Sensitivity?
    ... headset mic system which I need to run at full volume on the ... The receiver is quoted as having a sensitivity of 20dBuv ... could save money by operating at a lower level than the "pro" standard. ... and choose their standard operating level as a nice even number ...
    (rec.audio.pro)
  • Re: How many times can you shoot a .223....
    ... The one weakness of the standard ... AR-15 is that the Varminter is equipped with a 24" heavy barrel in the ... There are some who maintain that a sloppy fit between lower and upper ... Since the upper contains the chamber, bolt, bore and sigth base, it's ...
    (rec.guns)
  • Re: Forth Go Program
    ... in a source file? ... prefers the comments to be in upper case, ... and to define all standard names in upper case. ... M. Anton Ertl http://www.complang.tuwien.ac.at/anton/home.html ...
    (comp.lang.forth)