Skip to content

One line empty type #37

@Shuenhoy

Description

@Shuenhoy

This guideline seems not to mention it, but fantomas formats empty type definitions to 3 lines:

type AnEmptyType =
    class
    end

I think this is pretty lengthy and won't be beneficial, since you can never insert anything between this class and end. Can we change it to one line?

type AnEmptyType = class end

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