Skip to content

Offer ?default arguments, instead of ~labelled ones #21

@djs55

Description

@djs55

Some of the functions take a metric ton of arguments, most of which have sensible defaults, which someone writing a simple client might not know for sure. The client writer can probably guess, but they shouldn't have to and it makes the code quite unwieldy.

Where the protocol requires an argument, we should generate

let f ?(x = Reasonable_default)

Where the protocol allows an argument to be omitted, we should generate

let f ?x

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