We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Both Haxe and TypeScript have support for type parameter constraints.
Haxe has a bit more support, because you can extend multiple types:
class Something<T:(Iterable<String>, Measureable)>
In TypeScript you can only extend a single type:
interface G<T, U extends Function>
None of these languages support Java's super constraints:
List<? super Integer>
Spaghetti could support TypeScript-style single-type extends, and leave the more esoteric stuff out.
Syntax could be based on TypeScript/Java:
<T extends Iterable<String>, X extends T>
The text was updated successfully, but these errors were encountered:
I'd like to +1 this issue
Sorry, something went wrong.
No branches or pull requests
Both Haxe and TypeScript have support for type parameter constraints.
Haxe has a bit more support, because you can extend multiple types:
In TypeScript you can only extend a single type:
None of these languages support Java's super constraints:
Spaghetti could support TypeScript-style single-type extends, and leave the more esoteric stuff out.
Syntax could be based on TypeScript/Java:
The text was updated successfully, but these errors were encountered: