Ticket UUID: | dc8ba1dd21498fa85fb22e87b8b59601740eb506 | |||
Title: | demos and tests: prefer exact string comparison | |||
Type: | Patch | Version: | core-8-6-branch | |
Submitter: | chrstphrchvz | Created on: | 2019-07-15 08:41:29 | |
Subsystem: | None | Assigned To: | nobody | |
Priority: | 5 Medium | Severity: | Cosmetic | |
Status: | Closed | Last Modified: | 2023-04-02 16:30:07 | |
Resolution: | Rejected | Closed By: | chrstphrchvz | |
Closed on: | 2023-04-02 16:30:07 | |||
Description: |
…e.g. by using eq/ne, rather than using e.g. ==/!= or [string match win* …]. (Have only done this so far for comparisons against [tk windowingsystem]; there are probably many more…) | |||
User Comments: |
chrstphrchvz added on 2023-04-02 16:30:07:
The suggested changes, except for the one in library/demos/widget, have since been made anyway in [d2d8281f24cc] (library/demos/menu.tcl, tests/menubut.test, tests/text.test, tests/unixWm.test, tests/winfo.test) or are obsolete as of [c357edcff224] and [13ceb0aa6a27] (ftests/canvImg.test, tests/image.test). fvogel added on 2019-07-17 21:01:11: > Seeing as there were existing check-ins for whitespace tweaks and other > non-functional improvements, I didn't immediately think this patch would > be considered disruptive. I'm also fighting against white space changes, end of line blanks removals and so on. Those can however be filtered out when diffing, so I more or less abandoned this lost cause but I consider them also very annoying. chrstphrchvz added on 2019-07-17 11:35:37: My goal is to break two rules:
Seeing as there were existing check-ins for whitespace tweaks and other non-functional improvements, I didn't immediately think this patch would be considered disruptive. I will go ahead and consider these rejected, and will consider finding a bigger problem to work on.
fvogel added on 2019-07-15 13:27:20: What does the proposed change bring as an added value? I tend to view such change as unnecessary noise in the files history. |
Attachments:
- dc8ba1dd.patch [download] added by chrstphrchvz on 2019-07-15 08:42:37. [details]