On 2014-18-07 17:42, Andy Parker wrote:
> On Fri, Jul 18, 2014 at 12:47 AM, Peter Meier <
peter...@immerda.ch
> <mailto:
peter...@immerda.ch>> wrote:
>
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> > Can we get rid of this, it is bad enough that all other keywords
> > can be used (if, unless, case, class, define, etc. etc.)
>
> Couldn't we ban them as well? I think in most other "programming"
> languages this won't work as well.
>
>
> We tried that, accidentally, when we added some new keywords. Lots of
> things broke. In fact one of the core types uses a keyword: exec uses
> unless.
>
Yeah, there are a few that makes sense; "class", "unless", "define",
"type", "inherits", "not" comes to mind as possibly meaningful names
(there may be others). Since that is like half of them, we could just
support all of them. The keywords true/false are different in that they
produce boolean values. There is no great harm in continuing to support
them; I just find it odd to name an attribute "true" or "false", and we
already have confusion over "false" vs. false.