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

Shorten array type in error output #86

Open
Veltas opened this issue Jul 11, 2016 · 2 comments
Open

Shorten array type in error output #86

Veltas opened this issue Jul 11, 2016 · 2 comments

Comments

@Veltas
Copy link
Contributor

Veltas commented Jul 11, 2016

Something that would make error output a lot more readable is if table types like
'({1:string, 2:string, 3:string, 4:string, 5:string, 6:string, 7:string, 8:string, 9:string, 10:string, 11:string, 12:string, 13:string, 14:string, 15:string, 16:string})'
could be shortened to something like '({1 .. 16: string})'.

So the compiler would be writing a shorthand for the correct type specification.

If this (or similar) became a valid way of specifying types in TL as well, that would be a bonus.

@Veltas
Copy link
Contributor Author

Veltas commented Jul 11, 2016

More specifically, I think in the case where a table is an array to a single type specification then this shorthand should be displayed. If it's more general at displaying this then that's a bonus.

@mascarenhas
Copy link
Collaborator

This is a very nice idea!

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

2 participants