Skip to content

Syntax for implicit conversion of output parameters, constrained parameters and adapting parameters #43

@AndreVanDelft

Description

@AndreVanDelft

As for the syntax: I think these should just be syntactic sugar.
The preprocessor currently packs occurrences of ?a, ?a ?if(...) and ??a in ActualOutputParameter, ActualConstrainedParameter and ActualAdaptingParameter.
This is done when the expression is inside a script parameter list, not yet as terms in script expressions awaiting an implicit conversion. Well, I am not sure; I think that is not supported yet.

So with an implicit script key(??c: Int) we should be allowed to write:

key:?c
key:?c ?if isUppercase:c
key:??c (adapting parameter)

and with implicit conversions:

?c
?c ?if isUppercase:c
??c  

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