News for hackers. Stuff that matters.
Re:Ifs and &&s and Plan 9's Source Code by Avshalom on Friday May 24, 2013 @05:48PM (#5765355)

  if(b != nil){
  if(b->qid.type==a->qid.type){
  if(b->qid.path==a->qid.path){
  if(b->qid.vers==a->qid.vers){
  if(b->dev==a->dev){
  if(b->type==a->type){
    fprint(2, "cp: %s and %s are the same file\n", an, bn);
    ret = 1;
  }}}}}}
I will never understand the allergy to multiple braces on one line.
Re:Ifs and &&s and Plan 9's Source Code by notaddicted on Friday May 24, 2013 @06:18PM (#5765494)
I think the aversion is because the way that they line up visually is the opposite of the way that they are matched by the parser. I think everyone needs a dose of LISP to get over any problems they have with any frequency or arrangement of brackets/parens/braces. Anyway, having a function that compares two structs and returns 0 or 1 with a printf out to stderr is just gross in my opinion.