sorawee / fmt

A code formatter for Racket
Other
72 stars 6 forks source link

sorting #10

Open sorawee opened 2 years ago

sorawee commented 2 years ago

There are stuff that might be able to sort safely. See e.g. https://github.com/russellw/racket-format/blob/master/sort.rkt (though a lot of stuff in there are actually not safe to sort). Perhaps provide an option to sort?

jackfirth commented 2 years ago

Are you thinking of things like require and provide specs?

sorawee commented 2 years ago

Yep. It's tricky though, especially when comments are involved. Perhaps only do it when there's no comment?

jackfirth commented 2 years ago

Yes, that sounds right.