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

Function return type hinting placement #276

Closed
mfikes opened this issue Nov 15, 2018 · 2 comments
Closed

Function return type hinting placement #276

mfikes opened this issue Nov 15, 2018 · 2 comments

Comments

@mfikes
Copy link
Member

mfikes commented Nov 15, 2018

In the "Differences from Clojure" section on Hinting, we should mention that the hint goes between the defn and the function name symbol (whereas in Clojure it is often placed between the function name symbol and the argument vector.

@vemv
Copy link

vemv commented May 23, 2019

I'd much appreciate this one because:

  • encountering the issue on my own made me lose time;
  • it'd be good to have an official confirmation that the difference is deliberate and 'contractual' (i.e. not WIP)

@swannodette
Copy link
Member

swannodette commented Apr 12, 2020

There's actually no difference here between Clojure & ClojureScript. If the Clojure way doesn't work that's a bug and we're not going to document that.

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

3 participants