Skip to content

Flag to swarm format to add type signatures #2680

@byorgey

Description

@byorgey

After typechecking, and before pretty-printing, it should be pretty easy to go through and copy inferred type annotations into the slot where we store explicit type annotations.

I don't think this should be the default, but we could add a flag so you could say e.g. swarm format --add-types or something like that.

Metadata

Metadata

Assignees

No one assigned

    Labels

    L-Pretty-printingPretty-printing ASTs or values into a string representation.L-Type inferenceThe process of inferring the type of a Swarm expression.T-UIInvolves the user interface.Z-FeatureA new feature to be added to the game.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions