On 2013-7-8 06:26 , Lawrence Velázquez wrote:
> On Jul 7, 2013, at 6:36 AM, Joshua Root <[email protected]> wrote:
> 
>> Quotes aren't actually wrong in this context (other than that it's a bit
>> of a wart that expr and if require literal strings to be quoted when Tcl
>> in general does not), and I actually prefer quotes for values where
>> we're not preventing substitutions that would otherwise happen.
> 
> I suppose I look at it the other way. That is, I prefer using quotes if and 
> only if substitution is involved. This also prevents Tcl from checking for 
> substitutions unnecessarily, but I admit that this is certainly premature 
> optimization.

I think it improves readability as well. 'If' conditions can end up
looking like "brace brace brace, brace brace brace brace".

- Josh
_______________________________________________
macports-dev mailing list
[email protected]
https://lists.macosforge.org/mailman/listinfo/macports-dev

Reply via email to