Skip to content

Clarifications on ragged literals #101

Description

@novo52

https://discord.com/channels/1392396664299458601/1446720730166202420

This discord thread wins the most confused and frustrated students award.

How do we resolve this?

The main problem here seems to be that vector literal syntax is the same as array literal syntax, so nested array literals can either be vector<integer[*]>, or integer[*][*]. A ragged literal then means different things depending on the context. Additionally, it is ambiguous whether arrays are implicitly promoted to vectors, so what exactly are the objects on the right-hand side of the examples given by students?

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions