Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.java.programmer > #26563 > unrolled thread

Re: the true literal

Started by"Qu0ll" <Qu0llSixFour@gmail.com>
First post2013-11-22 14:02 +1100
Last post2013-11-22 14:02 +1100
Articles 1 — 1 participant

Back to article view | Back to comp.lang.java.programmer

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  Re: the true literal "Qu0ll" <Qu0llSixFour@gmail.com> - 2013-11-22 14:02 +1100

#26563 — Re: the true literal

From"Qu0ll" <Qu0llSixFour@gmail.com>
Date2013-11-22 14:02 +1100
SubjectRe: the true literal
Message-ID<zK6dnctvYvLpVBPPnZ2dnUVZ_hSdnZ2d@westnet.com.au>
"Stefan Ram"  wrote in message 
news:true-20131122032105@ram.dialup.fu-berlin.de...

>  The JLS says:
>
>      »While true and false might appear to be keywords,
>      they are technically Boolean literals (§3.10.3).«
>
>  What is a keyword?
>
>  I used to think that a keyword is a words whose meaning is
>  given by the language specification and that cannot be
>  declared as an identifier in source code. I believe that all
>  of this applies to »true«. So, why then it is not called a
>  keyword in Java?

Do the terms "keyword" and "literal" have to be mutually exclusive?  To me, 
'true' and 'false' have properties of both terms though I would favour 
'literal' if I had to make a choice.

--
And loving it,

-Qu0ll (Rare, not extinct)
_________________________________________________
Qu0llSixFour@gmail.com
[Replace the "SixFour" with numbers to email me] 

[toc] | [standalone]


Back to top | Article view | comp.lang.java.programmer


csiph-web