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

Variadic Template args #21

Open
VonTum opened this issue Nov 9, 2024 · 0 comments
Open

Variadic Template args #21

VonTum opened this issue Nov 9, 2024 · 0 comments
Labels
enhancement New feature or request Request Input These are issues about the design of the language, and thus should be discussed

Comments

@VonTum
Copy link
Collaborator

VonTum commented Nov 9, 2024

So I don't really see the need for tuples as a language feature. SUS already has multi-output interfaces, which is a prime motivation for languages to include tuples.

However, for template arguments tuples are really handy. Could we instead provide variadic template types, such that we can pass multiple args together as one "template arg"?

The prime example is the FIFO, again.

myFIFO f
int x, double d, Vec3 v
f.push(x, d, v)

int y, double dd, Vec3 outV = f.pop()
@VonTum VonTum added enhancement New feature or request Request Input These are issues about the design of the language, and thus should be discussed labels Nov 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request Request Input These are issues about the design of the language, and thus should be discussed
Projects
None yet
Development

No branches or pull requests

1 participant