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

Should the length be part of the generic syntax for arrays? #55

Open
sirisian opened this issue Jan 23, 2021 · 0 comments
Open

Should the length be part of the generic syntax for arrays? #55

sirisian opened this issue Jan 23, 2021 · 0 comments

Comments

@sirisian
Copy link
Owner

let a[10]<uint8>;

vs:

let a:[]<10, uint8>; // or:
let a:[]<uint8, 10>;

I have no real design questions. Just something I was thinking about when making the generic syntax changes.

C++ template style array for reference looks like std::array<int, 3>.

If non-type parameters will be supported by generics is up in the air though. If it was supported and expected then this would need to be debated.

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