|
From: Pietro C. <ga...@ga...> - 2025-10-25 11:23:13
|
> On 25 Oct 2025, at 11:07, Jan Nijtmans <jan...@gm...> wrote: > > Op za 25 okt 2025 om 01:34 schreef Phillip Brooks: >> tags: trunk, main >> >> comment: TIP #465: Change Rule 8 of the Dodekalogue to Cut Some Corner Cases (user: jan.nijtmans) >> >> >> Jan, Can you confirm whether the current behavior here is correct for 9.0 - or is it a bug? If it is correct behavior, then it seems that the $(( expression )) syntax is currently guarded from being recognized as valid syntax at least in this context. >> >> >> If it is a bug, can you explain the intent of the change? > > Everything you want to know about it (hopefully) can be found > here: > <https://core.tcl-lang.org/tips/doc/trunk/tip/465.md> > > It - indeed - means that the $(( ... )) syntax is invalid in Tcl 9.0, > so it can safely be used for "expression substitution". > > I think we should go for this syntax! > Jan Nijtmans Having followed this thread with curiosity but also somewhat disillusioned - given the precedents - I must say I find this a game changer, and something we can't allow ourselves to miss. We have in our hands a backwards compatible *and* nice looking expr shortcut. Wow! I'm all for it! -- Pietro Cerutti I've pledged to give 10% of income to effective charities and invite you to join me. https://givingwhatwecan.org Sent from a small device - please excuse brevity and typos. |