Re: Why isn't "dash" a wordchar?
Available news archives: comp.lang.tcl - comp.lang.python - comp.security.firewalls - sci.crypt - comp.lang.php - comp.lang.javascript
Google
 
Web news.hping.org


comp.lang.tcl archive

Re: Why isn't "dash" a wordchar?

From: Adrian Ho <tcl@03s.net>
Date: Sun Mar 26 2006 - 17:07:51 CEST

On 2006-03-26, Donald Arseneau <asnd@triumf.ca> wrote:
> Adrian Ho <tcl@03s.net> writes:
>> On 2006-03-25, Bob Binder <nospam@domain.com> wrote:

Just so it's clear, I wrote the following nonsense, not Bob. 8-)

>> "connector punctuation" characters are generally used as connectors for
>> identifiers in many (most?) programming languages. It just so happens
>> that Tcl is *not* one of them, but we can't all be conformists. 8-)
>
> On the contrary! While any character may be used as part of a
> variable or command name, different characters interact with the
> syntax in different ways. The underscore is unusual in that it
> behaves just like an alphanumeric.

Sorry. You're right that it's completely nonsensical because I screwed
up my edit. The above originally read:

  "connector punctuation" characters are generally used as connectors for
  identifiers in many (most?) programming languages. It just so happens
  that Tcl is *not* one of them (in that it's not so restrictive, but
  allows just about any character in an identifier with careful bracing),
  but we can't all be conformists. 8-)

but in a fit of rapid keyboard-pounding, I accidentally deleted the
entire parenthetical comment. Guess which paren-heavy language I've
been dabbling with lately. (It rhymes with "beam". 8-)

- Adrian
Received on Sun Apr 30 02:49:06 2006