Thread Welche Schreibweise verwendet ihr ?: ... nur aus Interesse (168 answers)
Opened by havi at 2003-09-11 23:56

master
 2006-04-24 14:01
#51038 #51038
User since
2003-10-20
610 Artikel
BenutzerIn
[default_avatar]
@Crian
Du hast recht.. das mach ich unschön.
Code: (dl )
1
2
3
4
5
ich:
if(1 eq 1) {}

statt:
if (1 eq 1) {}

in dem punkt sollte ich es echt überdenken ;-)
------

ohne Zeilenumbruch = eh unleserlich...
Code: (dl )
1
2
3
4
5
6
7
8
9
if (1 eq 1)
{
  print 'hallo';
  print 'hallo';
  if(2 eq 2)
  {
     print 'hallo'
  }
}


Daher würde ich den Code eher so schreiben:


Code: (dl )
1
2
3
4
5
6
7
8
9
10
if (1 eq 1)
{
  print 'hallo';
  print 'hallo';
     
  if (2 eq 2)
  {
     print 'hallo'
  }
}


oder
Code: (dl )
1
2
3
4
5
6
7
if (1 eq 1)
{
  print 'hallo';
  print 'hallo';
     
  if (2 eq 2) { print 'hallo' }
}


wichtig ist der Zeilenumbruch vor der if...
GANZ wichtig... damits nicht untergeht...
$i='re5tsFam ^l\rep';$i=~s/[^a-z| ]//g;$\= reverse "\U!$i";print;

View full thread Welche Schreibweise verwendet ihr ?: ... nur aus Interesse