News for hackers. Stuff that matters.
Re:Adding keyword parameters to Tcl procs by blacksqr on Monday April 21, 2025 @03:06PM (#43755333)
The OpenACS web server toolkit has a lot of useful Tcl utilities, including the ad_proc procedure, which wraps proc and allows adding of switches, inline docs, and more.

I think it would be very useful to turn ad_proc into a built-in command and incorporate it into TCL.

https://nstcl.sourceforge.net/docs/nstcl-core/ad_proc.html

Re:Adding keyword parameters to Tcl procs by grewsome on Monday April 21, 2025 @04:17PM (#43756008)
For incorporating into Tcl I'd prefer something simpler that would also work with existing procs. Building on {*}, maybe {@} could work (to skip over arguments to a specified argument}. e.g. when calling a function: someFunc someVal anotherVal {@}someArgName yetAnotherVal
Re:Adding keyword parameters to Tcl procs by shawn_w on Monday April 21, 2025 @03:24PM (#43755493)
Personally I'm a fan of TEPAM from tcllib, which does much the same (and tcllib is available through many OS's package managers making it more readily available)

https://core.tcl-lang.org/tcllib/doc/trunk/embedded/md/tclli...