Skip to content

Style for (sub)modules? #75

Open
Open

Description

@nickrobinson251

e.g. don't indent inside `module ... end"?

# Yes
module Foo

export bar

bar() = 1

end

# No
module Foo

    export bar

    bar() = 1

end

Perhaps other rules? e.g. Blank line after module and before end?

# Yes
module Foo

export bar
bar() = 1

end

# No
module Foo
export bar
bar() = 1
end

it'd also be kind nice to add a comment after end e.g. end # module?

Raised by @iamed2 in JuliaDatabases/LibPQ.jl#197 (comment)

Activity

  1. omus commented on Oct 1, 2020

    @omus
    Contributor

    I agree with the suggestions made here. I'd also suggest one module definition per file.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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