Closed jackfirth closed 1 year ago
This code:
(if condition (let ([x 1]) (f x)) (begin (g) (h)))
Can be expressed more clearly using cond and define:
cond
define
(cond [condition (define x 1) (f x)] [else (g) (h)])
Resyntax should suggest using cond instead of if when at least one arm of the if uses begin or a let that can be rewritten to define.
if
begin
let
This code:
Can be expressed more clearly using
cond
anddefine
:Resyntax should suggest using
cond
instead ofif
when at least one arm of theif
usesbegin
or alet
that can be rewritten todefine
.