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


Groups > comp.programming > #2219

Re: more keywords?

Path csiph.com!usenet.pasdenom.info!weretis.net!feeder4.news.weretis.net!news.mixmin.net!eweka.nl!hq-usenetpeers.eweka.nl!border3.nntp.ams.giganews.com!Xl.tags.giganews.com!border1.nntp.ams.giganews.com!nntp.giganews.com!local2.nntp.ams.giganews.com!nntp.bt.com!news.bt.com.POSTED!not-for-mail
NNTP-Posting-Date Sat, 15 Sep 2012 05:04:58 -0500
From "Chris Uppal" <chris.uppal@metagnostic.REMOVE-THIS.org>
Newsgroups comp.programming
References <501d0c47-7d99-4252-a5bb-4abc69c4cda5@googlegroups.com>
Subject Re: more keywords?
Date Sat, 15 Sep 2012 11:02:44 +0100
X-Priority 3
X-MSMail-Priority Normal
X-Newsreader Microsoft Outlook Express 6.00.2900.5512
X-MimeOLE Produced By Microsoft MimeOLE V6.00.2900.5512
X-RFC2646 Format=Flowed; Original
Message-ID <RI6dnWNORolXz8nNnZ2dnUVZ7vGdnZ2d@bt.com> (permalink)
Lines 21
X-Usenet-Provider http://www.giganews.com
X-AuthenticatedUsername NoAuthUser
X-Trace sv3-gUtg6efqdku+XvsZHAzCj/osalxSMHnOj6tveK0Pa/F3j6oBP8mP585xVR65QapQ+YFqoRnbr5WH79+!hJAK3ai4tEUHWNvKBlKOrIFnxTpOCvadG7LodVt4lCf08JT7U7BEqPcEIJ9rnHteC9ggsNyjbUJb
X-Complaints-To abuse@btinternet.com
X-DMCA-Complaints-To abuse@btinternet.com
X-Abuse-and-DMCA-Info Please be sure to forward a copy of ALL headers
X-Abuse-and-DMCA-Info Otherwise we will be unable to process your complaint properly
X-Postfilter 1.3.40
X-Original-Bytes 2019
Xref csiph.com comp.programming:2219

Show key headers only | View raw


bob wrote:
> Would it be better to have more keywords in a language than to continue
> to reuse keywords where they don't make sense?

MS, in C#, have taken the approach of adding "contextual" keywords -- keywords 
which are only recognised as keywords in certain circumstances and can be used 
freely as identifiers elsewhere.

Not sure I like that approach.  Mainly because it apears to lead to a 
proliferation of keywords, of which I am not fond, and complicates the parsing 
of the language (which is an important task for tools which /should/ exist, and 
even should be easy to create, for any language).  But it is an option open to 
the designer.

Most language designers, though, don't do things that way.  Possible for 
reasons similar to mine, possibly just because the parsing tools they use don't 
lend themselves to that approach.

    -- chris 

Back to comp.programming | Previous | NextPrevious in thread | Find similar


Thread

more keywords? bob <bob@coolfone.comze.com> - 2012-09-14 08:03 -0700
  Re: more keywords? Patricia Shanahan <pats@acm.org> - 2012-09-14 08:34 -0700
    Re: more keywords? BGB <cr88192@hotmail.com> - 2012-09-15 02:42 -0500
  Re: more keywords? "Chris Uppal" <chris.uppal@metagnostic.REMOVE-THIS.org> - 2012-09-15 11:02 +0100

csiph-web