Created
July 24, 2016 16:04
-
-
Save vani2/cd887bd44be8293ba1895b67677e7eef to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//#1 Первый параметр на одной строке с именем метода, круглые скобки примыкают к параметрам | |
abc(parameter: "asd", | |
closure: { | |
// ... | |
}) | |
//#2 Первый параметр на новой строке, закрывающая круглая скобка примыкает к параметру | |
abc( | |
parameter: "asd", | |
closure: { | |
// ... | |
}) | |
//#3 Python Convention. Первый параметр на новой строке, скобки не примыкают к параметрам: | |
abc( | |
parameter: "asd", | |
closure: { | |
// ... | |
} | |
) | |
//#4 Ничего не переносим | |
abc(parameter: "asd", closure: { | |
// ... | |
}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment