jackfirth / resyntax

A Racket refactoring engine
Apache License 2.0
58 stars 10 forks source link

Suggest `when` and `unless` over negated `unless` and `when`. #157

Closed jackfirth closed 2 years ago

jackfirth commented 2 years ago

This code:

(when (not condition)
  body ...)

Should be refactored to this code:

(unless condition
  body ...)

And vice-versa for negated unless to when.

jackfirth commented 2 years ago

Closed in e4a20c9b2c98f19c294b65e2c798f3ccdb69f3e3.