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

Remove the t operator in type signatures #4

Open
billpmurphy opened this issue Jul 30, 2015 · 1 comment
Open

Remove the t operator in type signatures #4

billpmurphy opened this issue Jul 30, 2015 · 1 comment

Comments

@billpmurphy
Copy link
Owner

Instead of having to type t(Maybe, int) or t(Either, "a", str), it would be much cleaner to type Maybe(int) or Either("a", str).

This should be relatively easy to implement, though it would require a major change to some parts of type_system.py, which would be a large breaking change. More experimentation is necessary, I think.

@billpmurphy
Copy link
Owner Author

Thinking about this a bit more, it's not possible to remove t entirely, as it's still needed for polymorphic higher-kinded types (e.g. t("m", "a")), but I still think the Maybe(int) syntax is much cleaner than t(Maybe, int).

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

1 participant