On Feb 26, 2024, at 9:54 AM, Tim Rowledge tim@rowledge.org wrote:
On 2024-02-26, at 8:37 AM, Jakob Reschke jakres+squeak@gmail.com wrote:
Renaming unfortunately doesn't help with keeping compatible with existing code out there. So it doesn't free up #assert:equals: to the more common order of arguments.
OK, so a monotonically improving possibility would be to add @assertResultOf:is: and comment that it is a readability-improved version of assert:equals:. Combined with changing all the plausibly reachable code to use that, it should make things a little clearer.
+1000
tim
tim Rowledge; tim@rowledge.org; http://www.rowledge.org/tim Never test for an error condition you don't know how to handle.