печально быть антисоциальным - Post a comment

Feb. 19th, 2004

[info]smejmoon

06:20 pm

teorētiski tā vispār nav problēma :)

praktiski ir tā, ka vēlāk nav skaidrs, kapēc ir jālieto {}; () un tamlīdzīgas lietas:

template <class T>
void mystify(T a, T b)
{
  if ( a > b )
  {
    doMagic();
    return a;
  }
  else
  {
    return b;
  }
}

ja var šitā:
def mystify(a, b):
  if a > b:
    doMagic()
    return a
  else:
    return b

Read Comments

Reply:

From:
( )Anonymous- this user has disabled anonymous posting.
Username:
Password:
Subject:
No HTML allowed in subject
  
Message:

Notice! This user has turned on the option that logs your IP address when posting.