Packed array syntax #2022
Replies: 1 comment 4 replies
-
|
We previously explored various syntax options for packed/unpacked arrays. Here is a summary of my thoughts at the time of consideration, along with my current perspective. First, the distinction between packed and unpacked arrays is necessary. Therefore, we must either distinguish them by the position of From the perspective of which symbol to assign to packed versus unpacked, we chose to assign If I understand that users of general-purpose programming languages are accustomed to array definitions using |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
This is about the syntax
type<size>used to denote packed arrays.Given that most programmers are familiar with
[]for arrays, I was wondering if we could move to a similar syntax to denote packed arrays? Perhaps we could use[size]for packed arrays and[%size%](or something similar) for unpacked arrays?I'm a bit worried that
<size>may be a deterrent on adoption.Beta Was this translation helpful? Give feedback.
All reactions