Skip to content

Create an ability to initialize a variable inline #302

@JankoJerinic

Description

@JankoJerinic

Instead of having to:

var b: bool;
b = true;

it would be nice to have the ability to declare and initialize inline:

var b: bool = true;

If a type can be inferred from the expression, then the explicit type can be omitted, but let's take it one step at a time.
This could also open the door for immutable val objects.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions