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

[FR] Generics argument overloading #621

Open
thareh opened this issue May 17, 2023 · 0 comments
Open

[FR] Generics argument overloading #621

thareh opened this issue May 17, 2023 · 0 comments

Comments

@thareh
Copy link
Contributor

thareh commented May 17, 2023

Hey,

I'm not sure this is at all possible, but it would be nice to be able to overload generic types with a different number of arguments:

Framework BRL.Blitz
Import BRL.Collections

Type TTreeMap<KA,KB,V>
EndType

Local map2d:TTreeMap<String, String> = New TTreeMap<String, String>()
map2d["foo"] = "bar"

Local map3d:TTreeMap<String, String, String> = New TTreeMap<String, String, String>()
map3d["foo", "fee"] = "bar"

(Pseudo-code)

Have a good day!

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