Skip to content

Deprecate the var keyword #3301

@axic

Description

@axic

I do not think there is any proper legitimate use left for the var keyword therefore I suggest we remove it.

In for loops already a type is suggested, instead of tuple declarations tuple assignments can be used and there is no need for the var for functions as function types can be used now.

Is there any other use case for var?

In #2558 I proposed to replace it with auto, but this issue would override that and just drop it.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions