News for hackers. Stuff that matters.
Re:N-queen puzzle in 4 lines of Scala by tyingq on Sunday April 10, 2016 @12:18PM (#11466812)
Smaller without being obfuscated:

  sub nextq {
      my $sz=8;
      (print("@_\n"),return) if @_ == $sz;
      o: foreach my $col(0..$sz-1) {
          my($u,$d)=(scalar(@_),scalar(@_));
          for (@_) {next o if($_==$col or $_==$col-$u-- or $_==$col+$d--)}
          nextq(@_,$col);
      }
  }
  nextq();
Re:N-queen puzzle in 4 lines of Scala by laumars on Sunday April 10, 2016 @02:07PM (#11467401)
Personally I'd consider 1 and 2 character variable names as a form of obfuscation. eg what's the point having a "pseudo-constant" for size if it's named in such a way that isn't immediately obvious that it refers to the size.

Nice code though.