Skip to content

If a parameter is required but provides a default value, use the default value lower bound as the parameter lower bound #176

@abstratt

Description

@abstratt

For instance, in the signature below, clients should be able to omit a value for date, and the implementation of newCharge should still be able to rely on it not being null.

    static operation newCharge(taxi : Taxi, payer : Driver, date : Date := { Date#today() });

We either need to relax the verification on the operation call site, or allow the modeler the declare the parameter as optional and still consider it to be required in the body of the operation implementation.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions