Skip to content

Type ascriptions #6

@hazer-hazer

Description

@hazer-hazer

Firstly, I think that expr: type syntax for type ascription is confusing.
Secondly, it is impossible to parse as far as : is reserved for one line bodies of control-flow syntax units like while, for, etc.

Anyway, for now, having no plan for type ascriptions, I need to propose an alternative for the future to establish a lack of non-block of using : for one line bodies.
I think it is more clear and impact to have the of keyword for type ascriptions.

Properties

Precedence Same as as coercion operator

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions