Closed jackfirth closed 2 years ago
Saw this code today:
(for ([non-term (in-list (send g get-non-terms))]) (for ([prod (in-list (send g get-prods-for-non-term non-term))]) body ...))
That can be simplified to use for* instead:
for*
(for* ([non-term (in-list (send g get-non-terms))] [prod (in-list (send g get-prods-for-non-term non-term))]) body ...)
A lint for this should collapse any number of single-clause for forms.
for
Saw this code today:
That can be simplified to use
for*
instead:A lint for this should collapse any number of single-clause
for
forms.