Skip to content
Tcl Source Code View Ticket
Login

View Ticket

2014-09-14
11:15 • Ticket [d5ddbc7f49] Inconsistent terminology in error messages: should be vs. mu... artifact: c0eacb0506 user: dkf
2014-07-12
15:59 • Ticket [d5ddbc7f49]: 4 changes artifact: 892a116e86 user: dkf
2014-07-06
17:15 • Ticket [d5ddbc7f49]: 3 changes artifact: 42ed22633e user: dkf
2014-06-23
08:40 • Ticket [d5ddbc7f49]: 4 changes artifact: 101c43ad97 user: dkf
2014-06-17
21:06 • New ticket [d5ddbc7f49]. artifact: 566871f70b user: andy

Inconsistent terminology in error messages: should be vs. must be, unknown/ambiguous vs. bad

Opend5ddbc7f49bc0a8820c50da00db83fd4f2629e28Created 12 years agoUpdated 12 years ago
Descriptionplain2014-06-17 21:06:30
% puts
wrong # args: should be "puts ?-nonewline? ?channelId? string"
% binary asdf
unknown or ambiguous subcommand "asdf": must be decode, encode, format, or scan
% fileevent asdf fdsa
bad event name "fdsa": must be readable or writable

Sometimes we get "should be", sometimes "must be". Sometimes it's "unknown or ambiguous", sometimes just "bad".

[fileevent] accepts unambiguous prefixes of readable and writable, so why doesn't it say "unknown or ambiguous event name"?
dkfhtml2014-06-23 08:40:26

Just FYI, “unknown or ambiguous” is a mark of something hand-written; the proper language is “ambiguous” when there are too many possible matches and “bad” when there are too few.

dkf Ticket [d5ddbc7f49]: 3 changes [History diff]2014-07-06 17:15:58
dkfwiki2014-07-12 15:59:01

Will be “should be” as that results in a smaller change to the test suite than “must be”.

dkf Ticket [d5ddbc7f49]: 3 changes [History diff]2014-09-14 11:15:00
Log in (anonymous is fine) to add a comment.