|
Posted by Tony Marston on 11/02/45 11:54
"ninja" <malatestapunk.news@gmail.com> wrote in message
news:1154349765.384285.85920@i42g2000cwa.googlegroups.com...
> Tony Marston wrote:
>> They fail to
>> recognise the fact that the potential problems that case sensitivity
>> could
>> cause outweigh the non-existent benefits.
>>
>> --
>> Tony Marston
>> http://www.tonymarston.net
>> http://www.radicore.org
>
> Sorry to barge in like this in the middle of the conversation, but I'm
> really curious about the issue. I read more or less the entire thread,
> and didn't find the answer to a question that seems quite obvious to
> me.
>
> You said (over and over again) that you dislike case sensitivity. OK,
> fine. You said (over and over again) that case sensitivity has no
> benefits. OK. Now, could you please be so kind to tell me what are all
> the benefits of case insensitivity in programming?
In a case insensitive language you can have variables $foo and $Foo which
arethe same variable, ot different ones. Also, the function dosomething() is
the same as doSomething() and doSomeThing().
> Furthermore, I would *really* like to hear more on the potential
> problems of case sensitive language.
In a case sensitive language all the above variables and functions actually
refer to different things, which can cause serious problems when trying to
maintain the code, especially when you are not the original author.
I don't know about you, but when I read code I "hear" the words in my mind,
and $foo, $Foo and $FOO always sound the same, therefore they *should* be
the same.
If a language allows the use of different case to mean different things,
then it is allowing programmers to create enormous problems for themselves
as well as others. Nobody but a moron would deliberately create functions
called readfile() readFile() and ReadFile() which are actually different
functions which do different things. The name of a function should identify
what it does, not the case.
If modern languages have deliberately excluded GOTO due to the problems it
can cause, not to mention the evil ALTER which existed in COBOL, then why is
it not possible to apply the same logic and get rid of case sensitivity?
--
Tony Marston
http://www.tonymarston.net
http://www.radicore.org
Navigation:
[Reply to this message]
|