Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Better support for define/contract #46

Open
sorawee opened this issue Jun 5, 2023 · 0 comments
Open

Better support for define/contract #46

sorawee opened this issue Jun 5, 2023 · 0 comments

Comments

@sorawee
Copy link
Owner

sorawee commented Jun 5, 2023

See also #34 (comment) by @jessealama

(define/contract x integer? 1)

should be formatted that way, not

(define/contract x 
  integer? 
  1)

Also, we probably should support

(define/contract (f x) (-> integer? integer?) 
  (+ x 1))

The problem is that with our current pretty printer, this style will almost always be preferred over

(define/contract (f x) 
  (-> integer? integer?) 
  (+ x 1))

even though the first line is really long. Our new pretty printer can fix this problem, but let's wait for now.

@sorawee sorawee changed the title Better support define/contract Better support for define/contract Jun 5, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant