resyntax icon indicating copy to clipboard operation
resyntax copied to clipboard

Lint same equals, e.g (equal? foo foo)

Open jestarray opened this issue 7 months ago • 1 comments

--------------------
#lang racket
(define foo 1)
(define bar 2)
(equal? foo foo) ; user probably meant to check foo against bar
--------------------
#lang racket
; idk what it should generate? It should warn the user that the comparison of the same thing is pointless

As mentioned here: https://github.com/jeapostrophe/racket-langserver/issues/152#issuecomment-3026511974

Image

jestarray avatar Jul 14 '25 05:07 jestarray