Deutsch   English   Français   Italiano  
<vs455e$rhhh$1@dont-email.me>

View for Bookmarking (what is this?)
Look up another Usenet article

Path: ...!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!eternal-september.org!.POSTED!not-for-mail
From: et99 <et99@rocketship1.me>
Newsgroups: comp.lang.tcl
Subject: Re: can this work?
Date: Thu, 27 Mar 2025 11:24:44 -0700
Organization: A noiseless patient Spider
Lines: 28
Message-ID: <vs455e$rhhh$1@dont-email.me>
References: <vrjsse$1oane$1@dont-email.me>
 <20250321163420.39ecbc0b40151daab77dcc27@domain.invalid>
 <vrkkeq$2c2m0$1@dont-email.me> <vrkqq1$2hm9c$1@dont-email.me>
 <vrmbb6$3vamk$1@dont-email.me> <vrmjv9$6fer$1@dont-email.me>
 <vs00fd$10bgm$1@dont-email.me> <vs0sbr$1ovrs$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Thu, 27 Mar 2025 19:24:47 +0100 (CET)
Injection-Info: dont-email.me; posting-host="f98b5dc42206cb762ae67b7269f5984b";
	logging-data="902705"; mail-complaints-to="abuse@eternal-september.org";	posting-account="U2FsdGVkX1+d1c9TP6bbsMwbjRWTehb7"
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:bwl+xLePnQx01hJu7dkJwLaerBQ=
Content-Language: en-US
In-Reply-To: <vs0sbr$1ovrs$1@dont-email.me>
Bytes: 2360

On 3/26/2025 5:35 AM, Alan Grunwald wrote:

>>
> FWIW, I remember when I first started to use [expr {$a eq "b"}] if took me *AGES* to get the syntax right. To be fair to [expr], its error message (if you omit the double-quotes) is pretty specific, but I still found it a struggle to get the syntax right.
> 
> The lesson I took from this was to stop writing
> 
> set i foo
> 
> and to start writing
> 
> set i "foo"
> 
> but the temptation to save a couple of keystrokes is still strong :-)
> 


I too have taken to always use the double quotes, first it better indicates my intent, but also my text editor highlights all "strings" in red so it's much easier to see them. This provides my incentive :)

While I was certainly nitpicking, it does show how difficult it can be to describe a computer language in a language like English. For years I thought it had to be in ""'s because that's how one normally writes strings. Then one day I read [expr] (for the n-teenth time) and finally realized one could also use braces, but one of the two is required. That's when the light-bulb finally glowed for me :)