Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add examples how to break long function headers #13

Open
hvr opened this issue Aug 26, 2013 · 0 comments
Open

Add examples how to break long function headers #13

hvr opened this issue Aug 26, 2013 · 0 comments

Comments

@hvr
Copy link

hvr commented Aug 26, 2013

How shall a function with long list of arguments be broken?

What of the following is acceptable (n.b. the max line length was shortened artificially for illustration)? where shall the =-sign land?

longfunname arg1 arg2 arg3 arg4 arg5 arg5
    = long body ...

longfunname arg1 arg2 arg3 arg4 arg5 arg5 =
    long body ...

longfunname arg1 arg2 arg3 arg4 arg5 arg5
    (Cons1 arg6 arg7 arg8 arg9)  
    = long body ...

-- note the weird ()-brackets
longfunname arg1
    arg2 arg3 arg4
    arg5 arg5 (Cons1
    arg6 arg7arg8
    arg9)
    = long body ...


-- ... ?
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant