What is proper style for an if() with a long condition?  I think I have
seen more than one option in the code.  

Here are some possibilities:

  if( condition1 &&
      condition2 ) {
      ConditionSuccessful();
  }

This has the disadvantage that ConditionSuccessful() is ligned up with
condition2, which is messy.

  if( condition1 &&
     condition2 ) {
      ConditionSuccessful();
  }

This is more readable but messy.

  if( condition1 &&
      condition2
    ) {
      ConditionSuccessful();
  }

This seems OK, but the ) { line looks funny.

Alex

--
Dr. Alexander R. Pruss  || e-mail: [EMAIL PROTECTED]
Philosophy Department   || online papers and home page:
Georgetown University   ||  www.georgetown.edu/faculty/ap85
Washington, DC 20057    ||
U.S.A.                  ||
-----------------------------------------------------------------------------
   "Philosophiam discimus non ut tantum sciamus, sed ut boni efficiamur."
       - Paul of Worczyn (1424)

_______________________________________________
plucker-dev mailing list
[EMAIL PROTECTED]
http://lists.rubberchicken.org/mailman/listinfo/plucker-dev

Reply via email to