-
Notifications
You must be signed in to change notification settings - Fork 54
Conversation
vxfield
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
added some questions
|
@cgranade One question: How can the dimensions of a multidimensional array be accessed? |
My thought was that this is the role of |
|
As per discussions offline, I'll go on and take the action items to:
|
|
Copy-pasting some notes from exploring a syntax alternative for literals: What should opening and closing delimiters be for inner levels of nesting?
Are spaces allowed between [ and |?
Do we use [|| for higher than 2D or nested [|?
What should be checked at compile time?
|
|
Further discussions on
|
|
I'm not following this closely, so I'll just drop a raw idea here that you may have already considered (based on many other languages implementations).
|
I think // 2D array
[ |1, 2, 3| ]
// 2D array or new sequence literal?
[|1, 2, 3|]So if we expect another type of sequence literal, I think we should plan for that to use delimiters other than |
|
Copy-pasting the conclusions from our discussions today here:
Very brief recap of the reasoning: |
bettinaheim
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I haven't looked in detail through the subsections under interactions with future modifications yet, and the section on alternatives and the comparison. Let's first close on the comments that I've added.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you, @cgranade, for all the work!
This PR represents an initial version of a proposal for #39.