Overview
| Artifact ID: | f476f3ed8ab446efd9fc277993942010f957f029f794905a6c837138028c2fd1 |
|---|---|
| Ticket: | a31caff05780aabdd20a8468673340435862dbf9
encoding command does not allow -strict to be used with -failindex |
| User & Date: | pooryorick on 2023-01-23 09:58:27 |
Changes
- icomment:
"... the constraint was already there, as side-effect of TIP #601." But that was not the intent of TIP 601. It was not discussed in the TIP, and was only an inadvertent side effect. Tcl shouldn't be a hack job. TIP 601 itself is a side effect of the mistake made in TIP 346: specifying an option ("-strict") that not only determines whether an error will be thrown, but also determines what constitutes an error. Because the control of control of two different functionalities was lumped together, TIP 601 came along to provide an option to separate them, Now we have the unfortunate situation that if one wants errors to be raised on encoding problems, but doesn't want the additional behaviour specified in TIP 346, there's no combination of options for that. Instead, what Tcl has is two options, "-strict" and "-nocomplain", that work together in a confusing way to provide functionality no one wants (or understands). There was never a TIP proposed to specify that encoding names should not start with a "-", and therefore was never a vote on that change. Constraining the set of values in situation-specific ways is the type of booby trap that bites programmers years down the road after a language has evolved in unexpected ways. This is one example of how recent TIPs have not been properly vetted. As Harald said, TIP 346 combined disparate functionality into one option. This is bad. TIPs that have so far only affected unreleased version of Tcl should not be sacred cows. Better sometimes to go back to the drawing board before the damage takes root. - login: "pooryorick"
- mimetype: "text/x-fossil-wiki"