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 'parameterized instance type constraint' #145

Closed
JarrettBillingsley opened this issue Nov 7, 2014 · 0 comments
Closed

Remove 'parameterized instance type constraint' #145

JarrettBillingsley opened this issue Nov 7, 2014 · 0 comments
Assignees

Comments

@JarrettBillingsley
Copy link
Owner

Parameter type constraints allow you to write arbitrary expressions that evaluate to class types in type constraints.

function foo(x: instance(someFunction(2, 4)))

This is basically useless. If your parameter checking is that complex, just do it in the function. Also without inheritance hierarchies, instance parameter constraints are less useful in general.

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