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

use Perl Log In

Log In

[ Create a new account ]

Journal of rafael (2125)

Monday March 14, 2005
03:54 AM

There must be only one way to do it

[ #23638 ]

Even with a better name, I think having the two choices side-by-side just requires programmers to think about making a choice that's irrelevant for their program; not having the choice streamlines the thought process. -- Guido van Rossum

Does this mean that if Guido was a linguist, he would have loved newspeak ?

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.
    • 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 ver