Skip to content

[wish] variadic predicates #402

Description

@gares

for non-built in it would be nicer to have that func f int -> any.. unfolds to func f int -> list any and that the compiler wraps calls to f 1 a b c to f 1 [a, b, c].

an extra goody could be a type anyt that expands to pair string any and where the string component is filled in by the compiler with the type of the argument as known at compile time. Maybe one would prefer an actual ast so that list int is presented as tapp (tconst "list") (tconst "int") or tapp "list" [tapp "int" []].

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