You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Resyntax ought to eliminate begin0 in the right-hand-side of define forms since those are always unnecessary. Saw this in benknoble/frosthaven-manager#106, where having this rule would have made another refactoring produce better output.
#lang resyntax/test
test: "begin0 in right hand side of define can be removed"
--------------------
#lang racket
(define (foo)
(definex (begin0 42 (displayln "foo")))
(* x 2))
--------------------
--------------------
#lang racket
(define (foo)
(definex 42)
(displayln "foo")
(* x 2))
--------------------
The text was updated successfully, but these errors were encountered:
Resyntax ought to eliminate
begin0
in the right-hand-side ofdefine
forms since those are always unnecessary. Saw this in benknoble/frosthaven-manager#106, where having this rule would have made another refactoring produce better output.The text was updated successfully, but these errors were encountered: