You are here: Re: Case sensitivity in programming languages. « PHP Programming Language « IT news, forums, messages
Re: Case sensitivity in programming languages.

Posted by Richard Levasseur on 07/29/06 17:32

ImOk wrote:
> Richard Levasseur wrote:
> > ImOk wrote:
> > > Smalltalk is the only language I know that was designed around case
> > > sensitivity being used correctly and with a purpose. If you study their
> > > system (and it's not complicated) you can write better code in all the
> > > other languages.
> > >
> >
> > I'm not familar with Small talk (though i always hear great things
> > about it), but how does the case of identifiers affect things?
>
> It's 'Smalltalk' one word and lower case t :)
>
> The idea is that if you write the code in proper English you achieve a
> couple of things:
>
> 1) The only necessary comments are the description at the top of a
> method. Your English is self documenting the code.
>
> 2) Very short methods. If a method is longer than 1/2 of a screen this
> means you cannot visually see your logicall without jumping up and
> down. The language doesnt even have a case statement and the
> ifTrue:ifFalse: is actually a method similar to inline ifs we have in
> PHP.
>
> 3) You can write what could take you 5 lines of code on one line. You
> just read left to right including the math (there is no operator
> precedence).
>
> So it was necessary to have standards including case sensitivity to
> make the coding concise.

Not sure if that answers my question.

>From your original post i got the impression that, depending on the
case of identifiers, Smalltalk would enforce that convention.
ie:
MYCONST => a global or constant value
MyClass => required to be a class declaration
myIdentifier => required to be a variable or method

Which could potentially be a nice feature in a language. Or it could
be really annoying.

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация