Code Comments

Programming Forum and web based access to our favorite programming groups.
For Programmers: Free Programming Magazines | New: Database administration forum
Registration is free! Edit your profileCalendarFind other membersFrequently Asked QuestionsSearch -> 
Post New Thread











Thread
Author

Re: swiss army knife
Anton van Straaten <anton@appsolutions.com> writes:

This line of "reasoning" can be used to defend all kinds of pointless
non-distinctions.  For example, it is also hard to see the point of
distinguishing between + and PLUS.  Or take any other word where
people tend to have trouble spelling it correctly.  Would it make
sense to have a programming language where "potato" and "potatoe"
refer to the same symbol? :-)

> The main argument for case-sensitivity seems to be an implementation
> argument, i.e. it's easier to implement sensitivity.  That seems to
> have real force in the Unicode case.  If it weren't for that, it'd be
> hard to see the point of case-sensitivity, especially in variable
> names.

My main argument for case-sensitivity has *never* been an
implementation argument.  The implementation -- before Unicode -- used
to be trivial.  My argument is that there is no good argument in favor
of case-insensitivity other than that some people apparently think
that "A" and "a" are the same thing.


Report this thread to moderator Post Follow-up to this message
Old Post
Matthias Blume
05-02-05 09:00 PM


Re: swiss army knife
Matthias Blume <find@my.address.elsewhere> writes:
>  My argument is that there is no good argument in favor
>of case-insensitivity other than that some people apparently think
>that "A" and "a" are the same thing.

In English, as in many other languages, we capitalize the first word of each
sentence.  The word doesn't change meaning because of this change.  There ar
e
very few cases in natural language in which two words have the same spelling
except for capitalization, but have different meanings -- and those rare cas
es
are problematic, leading to either misunderstanding or circumlocution.  For
example, consider "democratic" and "Democratic"; it's always a little diffic
ult
to explain that someone might want a democratic government but not a Democra
tic
one, especially when speaking rather than writing.

And speaking of speaking, one of the minor advantages of Scheme over C is th
at
you can read a Scheme program out loud without confusion among the variable
foo, its type Foo, and the FOO flag bit.  (And, by the way, for this reason 
I
try *not* to name a procedure PLUS -- I prefer SUM or ADD.)

Report this thread to moderator Post Follow-up to this message
Old Post
Brian Harvey
05-02-05 09:00 PM


Re: swiss army knife
Matthias Blume <find@my.address.elsewhere> wrote:
> Probably not.  This point is moot, though, as there is no programming
> language I know of that let's you use typography.

Have a look at ColorForth.
 
>
> Sure.  But so what?

Symbols in programming languages are names for objects like variables
and procedures. They are used in the same way as names are used to
identify persons. If someone writes you a letter and spells your name
in all capitals, you would still expect the letter to arrive, would
you not?

>     Weg
>
>        -- path, narrow road (a noun)
>
>     weg
>
>        -- away, gone, not here (an adverb)

You do not even need different capitalization to create such
ambiguity. There are lots of words with different meaning and
identical capitalization, like the english 'spring' or the
german 'Birne'. Case-sensitivity does not resolve such issues.

Nils

--
Nils M Holm <nmh@despammed.com>         http://www.holm-und-jeschag.de/nils/
Symbolic Computing - an Introduction to Pure LISP: http://www.t3x.org/scipl/

Report this thread to moderator Post Follow-up to this message
Old Post
Nils M Holm
05-04-05 09:00 PM


Re: swiss army knife
Matthias Blume wrote:
> Nils M Holm <nmh@despammed.com> writes:
>
> 
>
>
> That's why I used the phrase "language I know of".

Immediate words (macro-like functions) have other colors than
other words.  Think of Lisp with quotation done by setting the
color of part of the code :D

--
No man is good enough to govern another man without that other's
consent. -- Abraham Lincoln

Report this thread to moderator Post Follow-up to this message
Old Post
Ulrich Hobelmann
05-05-05 01:59 AM


Sponsored Links




Last Thread Next Thread Next
Search this forum -> 
Post New Thread

Scheme archive

Show a Printable Version Send to friend Email This Page to Someone! subscribe to this thread Receive updates to this thread
Computer Consultants
Programming Jobs
Visual Basic Controls
SQL Server Programming
Webservices
Java Security
Visual Studio
C# Programming
Visual J++
Software engineering
Open source Software
Perl Programming
PHP Programming
ASP Programming
ASP .NET Programming
Visual Basic Programming
Windows Scripting Host
Java Programming
Java Help
Java Beans
VBScript
Cobol
MAC Applications
Unix Programming
Forum Jump:
All times are GMT. The time now is 09:33 AM.

 
Free MCSE Braindumps | Real Estate Topics

Programming forum archive

Copyrights CodeComments.com 2004 - 2006

Powered by vBulletin Copyright 2000-2006 Jelsoft Enterprises Limited.