Stories
Slash Boxes
Comments
NOTE: use Perl; is on undef hiatus. You can read content, but you can't post it. More info will be forthcoming forthcomingly.

All the Perl that's Practical to Extract and Report

The Fine Print: The following comments are owned by whoever posted them. We are not responsible for them in any way.
 Full
 Abbreviated
 Hidden
More | Login | Reply
Loading... please wait.
  • So... since
    $counter++;
    is just shorthand for
    $counter += 1;
    and that is just shorthand for
    $counter = $counter + 1;
    I guess only having the last one would streamline the thought process in a brilliant way.
    • by rlehy (5265) on 2005.03.14 5:48 (#38849)
      Hm...
      Python 1.5.2 (#0, Sep 17 2002, 20:29:27)  [GCC 2.95.4 20011002 (Debian prerelease)] on linux2
      Copyright 1991-1995 Stichting Mathematisch Centrum, Amsterdam
      >>> counter = 1
      >>> counter += 1
        File "<stdin>", line 1
          counter += 1
                   ^
      SyntaxError: invalid syntax
      >>> counter++
        File "<stdin>", line 1
          counter++
                  ^
      SyntaxError: invalid syntax
      (Later versions do have a+=1, but not a++.) BTW, the original quote is about removing lambda, map(), filter(), and reduce() (while lambda and closures are already horribly constrained in current versions). That sure will streamline the 'switch to Ruby' thought process for the part of me that needs to write non-Perl.