My habits predate the introduction of “eq”. My finger-macros fully quote both arguments to “==” if there is a possibility either might be considered numeric. Is this unsafe?
I’m not sure what relevance the last paragraph has. The only real property I currently own is my home.
From: Colin McCormack <mcc...@gmail.com>
Date: Wednesday, February 1, 2017 at 8:33 AM
Cc: Tcl Core List <tcl-...@lists.sourceforge.net>
Subject: Re: [TCLCORE] TIP #461: Separate Numeric and String Comparison Operators
For years I have strictly avoided the use of == in favour of eq unless I knew the operands to be numeric.
My avoidance was learned by having programs surprise me unpleasantly under ==, and it is my understanding that such avoidance was, by convention, best Tcl coding practice. It has certainly helped me avoid surprises.
As I understand the proposed tip, it codified that best practice. I can only see that as beneficial to Tcl coders.
I see that some people who own Tcl codebases which they don't effectively control are reticent to see any change to Tcl, in any future version, because changes might necessitate maintenance effort on their part.
I don't think Tcl should encourage the convenience and provide economic benefits to a rentier class by committing to minimal language change while striving for improved performance.
Colin
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
_______________________________________________
Tcl-Core mailing list
Tcl-...@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/tcl-core