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?
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[*]>, orinteger[*][*]. 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?