+ 7
there are two types of people
1° p{ } 2° p{ }
12 Respuestas
+ 23
3°
p
{
}
+ 10
4°p{}
+ 10
6°
p { // code goes here, all code in one line, only close bracket in new line
}
+ 7
I'm definitely:
p
{
// Code
}
+ 5
°5
p
{ }
+ 4
1)
p {
}
+ 4
I usually don't deal with the languages that use {}
So my usual dealing is with
p():
#stuff
+ 3
@Hatsy Rei
4°p{
//Codes will go here....
}
+ 2
p
//sum code
(depending on what p is)
+ 2
The third type:
function foo {
//do your magic
$bar = null ;
for() {
if() {
//some magic
}
}
return ;}
+ 2
func
{
}
class{
};
data{ }
+ 2
get used to writing it both ways, so you can follow the convention when you edit/add to existing code :)