Novo curso! Todo programador deveria aprender IA generativa!
Experimente uma aula grƔtis+ 7
there are two types of people
1Ā° p{ } 2Ā° p{ }
12 Respostas
+ 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 :)