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

Allow non-constructor term names to start with : #1

Open
S11001001 opened this issue Jan 17, 2013 · 1 comment
Open

Allow non-constructor term names to start with : #1

S11001001 opened this issue Jan 17, 2013 · 1 comment

Comments

@S11001001
Copy link
Member

In Ermine-Scala, a leading : can be used for both data constructors and ordinary term names, like so:

infix 0 :=
(:=) : forall a b c. (a -> b -> c) -> a -> b -> c
(:=) = id

It would be nice to keep doing this in this Ermine.

@ghost ghost assigned ekmett Jan 19, 2013
@ekmett
Copy link
Member

ekmett commented Apr 3, 2014

I confess that while it is kind of nice, one of the biggest pain points working on the compiler right now is the lack of a clear indicator that something is a constructor, leading to unbound variables with names like Nothing, so I'm somewhat leaning towards letting these die, as they do actively get in the way of things like destructuring assignment.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants