Skip to content

Indent after -> #32

Open
Open
@mahrud

Description

@mahrud

I think it would be nice to standardize an indent after symbols like ->. For example:

myFunction = {} >> o ->
    n -> if n > 0 then 10^n else error "an annoyingly long error message here"

myMethod ZZ := n ->
    n > 0 then 10^n else error "an annoyingly long error message here"

Not sure what other symbols, but probably all symbols associated to binary operators should get an indent if the second operand doesn't come before a newline.

@d-torrance do you happen to know how this would be implemented?

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