Skip to content
This repository was archived by the owner on Jun 24, 2023. It is now read-only.
This repository was archived by the owner on Jun 24, 2023. It is now read-only.

Do array initialization in declaration #53

@KrisV-777

Description

@KrisV-777

Currently the only way to initialize an array at size n with compile time values is to do

int[] a = new int[2]
a[0] = 5
a[1] = 10

It'd save a lot of time if that could be shortened to

int[] a = [5, 10]

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requestlanguage-additionAdding something to the language that is not vanillalexerIssue related to the lexerparserIssue related to the parser

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions