Skip to content

Consider easy case of type inference #2000

Open
@rebcabin

Description

@rebcabin

Not suggesting a big, heavy, system of type inference, but perhaps we can easily do this:

    lower_case_alpha_range = ReRange(ord('a'), ord('z'))
    upper_case_alpha_range = ReRange(ord('A'), ord('Z'))
    digit_range            = ReRange(ord('0'), ord('9'))
    underscore             = ReRange(ord('_'), ord('_'))
    special_AT             = ReRange(ord('@'), ord('@'))
    special_TILDE          = ReRange(ord('~'), ord('~'))

instead of this (currently required):

    lower_case_alpha_range : ReRange = ReRange(ord('a'), ord('z'))
    upper_case_alpha_range : ReRange = ReRange(ord('A'), ord('Z'))
    digit_range            : ReRange = ReRange(ord('0'), ord('9'))
    underscore             : ReRange = ReRange(ord('_'), ord('_'))
    special_AT             : ReRange = ReRange(ord('@'), ord('@'))
    special_TILDE          : ReRange = ReRange(ord('~'), ord('~'))

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requestquestionFurther information is requested

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions