Updated 2013-01-17 05:52:57 by AMG

subcommand of string that returns whether its string argument is a valid Tcl list

Accepts both the -strict and -failindex var options, with usual meanings. Note that the -strict is meaningless as the empty string is always a valid list.

AMG: For Tcl 9, why not remove -strict for [string is list]? It is indeed meaningless. It's not even good for detecting empty lists, since any string consisting solely of whitespace is an empty list despite not being an empty string.