Skip to content
Discussion options

You must be logged in to vote

I tried record X is {string, number, boolean}, but that's not allowed

I think the easiest way would be to extend the language to allow this.

Now that instead of arrayrecord types we have the array type as an interface of the record, implementing this should be easier too. (There might still be some special-casing left in the compiler for records-as-arrays but it's way less "special" than before).

For maps, there's a conflict between string keys and record field names; that would take extra logic to check for conflicts.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by Andre-LA
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants