carbon-lang icon indicating copy to clipboard operation
carbon-lang copied to clipboard

Array constructor is the same as typle constructor

Open foxtran opened this issue 3 years ago • 0 comments

Array definition: https://github.com/carbon-language/carbon-lang/blob/2fa74f1d71e9ffda42f3459917ed265439c2bd6f/explorer/testdata/array/index.carbon#L15 Tuple constructor: https://github.com/carbon-language/carbon-lang/blob/2fa74f1d71e9ffda42f3459917ed265439c2bd6f/explorer/testdata/generic_function/swap.carbon#L15

I'm a bit confused with these definitions... What is about usage of traditional square brackets in array constructors?

foxtran avatar Jul 30 '22 10:07 foxtran