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 type annotations in binding positions #128

Open
eholk opened this issue Jan 29, 2014 · 0 comments
Open

Allow type annotations in binding positions #128

eholk opened this issue Jan 29, 2014 · 0 comments

Comments

@eholk
Copy link
Owner

eholk commented Jan 29, 2014

We avoided these originally because we wanted Harlan to feel like a dynamically-typed language--that is, the programmer would never have to see or write a type annotation. We've strayed away from this now with ADTs and external function declarations, so it makes sense now to optionally allow type annotations. For example, instead of (define (foo a b) ...) we could write (define (foo (a : float) (b : Expr)) ...).

These type annotations would be allowed in any binding position, such as kernel, let and match expressions.

This needs to play nicely with #127.

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