|
Posted by Tony Marston on 10/02/17 11:55
"Shelly" <sheldonlg.news@asap-consult.com> wrote in message
news:9V8Ag.2304$xp2.20@newsread1.news.pas.earthlink.net...
>
> "Jerry Stuckle" <jstucklex@attglobal.net> wrote in message
> news:XsKdnd0G1r_DnkzZnZ2dnUVZ_oadnZ2d@comcast.com...
>> Nope. Mixed case has its uses in case sensitive languages.
>>
>
> I actually only program part time now as I am in semi-retirement (My full
> time job for the last three years is as a teacher -- the hours are much
> better and it is rewarding in ways other than financial). I still program
> now in PHP for backend web work part time freelance.
>
> I started today (first day of school) with an Algebra 2 class. We
> discussed order of operations (PEMDAS). The question came up that we
> should do the parentheses first before the brackets because they thought
> the brackets should always be done last. I had to explain to them that IN
> MATH parentheses, brackets and braces were all the same thing. In a
> programming language they took on different meanings, although always
> enclosures.
>
> The analogy here is simple. The three things are like case sensitivity.
> In everyday language (analogy: MATH) they mean the same thing. However,
> in a programming language they take on different meanings (analogy:
> VARIABLES, METHODS, CONSTANTS).
>
> Tony (I know you wrote this one Jerry), that is what you fail to see.
> They are NOT the same thing as in everyday language. They are, in fact,
> different things.
The use of case does not (or should not) identify something as a constant, a
variable, a function or a method. A token is what it is regardless of case,
and a token with the same spelling should always be the same thing
regardless of case.
--
Tony Marston
http://www.tonymarston.net
http://www.radicore.org
Navigation:
[Reply to this message]
|