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

Smart inference based on the context, or suffixing literals? #734

@felixangell

Description

@felixangell

Something I'm constantly doing is casting values in cases where it's obvious and the compiler can easily infer the type based on the context. The proposal here is that we either have suffixes for each type, for instance u or s for annotating a signed and unsigned literal. Or we can infer the type of the literal based on the context of the expression.

I'm fine with either, or both, but I think not having any at all is a huge pain when writing code.

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