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

Fixed size array #143

Closed
Tarnadas opened this issue Jun 21, 2018 · 3 comments
Closed

Fixed size array #143

Tarnadas opened this issue Jun 21, 2018 · 3 comments

Comments

@Tarnadas
Copy link

Apparently there is no support for fixed size arrays, e.g.

class A {
  attr: [ int16, int16 ] = [ 0, 0 ];
}

won't compile.

Is support for this planned?

@dcodeIO
Copy link
Member

dcodeIO commented Jun 21, 2018

Fixed size arrays like int16[2] are hard to get right due to TypeScript's syntax, but tuple types like [i16, i16] as in your example are something I'd like to have as well.

@Avamander
Copy link

I just stumbled upon the same issue.

@dcodeIO
Copy link
Member

dcodeIO commented May 27, 2020

Closing this issue as part of 2020 vacuum as it seems to be fixed by the introduction of StaticArray<T>, even though that's not really tuples.

@dcodeIO dcodeIO closed this as completed May 27, 2020
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

3 participants