Skip to content

Array literals should be convertible to both dynamically-sized and statically-sized arrays #11879

Open
@chriseth

Description

@chriseth

We could implement this using a new type for array literals and the codegen could store the elements in memory while reserving a memory slot for the length (and just not use it for the static case).

Metadata

Metadata

Assignees

Labels

annoys users 😢high effortA lot to implement but still doable by a single person. The task is large or difficult.high impactChanges are very prominent and affect users or the project in a major way.language design :rage4:Any changes to the language, e.g. new featuresselected for developmentIt's on our short-term development

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions