Significant whitespace (was Re: Blogging sucks)

[prev] [thread] [next] [lurker] [Date index for 2005/10/13]

From: Abigail
Subject: Significant whitespace (was Re: Blogging sucks)
Date: 20:41 on 13 Oct 2005
--iFRdW5/EC4oqxDHL
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Thu, Oct 13, 2005 at 11:52:16AM -0500, Luke Kanies wrote:
> On Thu, 13 Oct 2005, A. Pagaltzis wrote:
>=20
> > It isn't anything like Python at all. There is only one level of
> > indentation. Once a block is indented far enough to be considered
> > a code block, all further indentation is literal.
> >
> > Not to mention that *all* alternative solutions are *really*
> > hateful.
>=20
> Strangely, I don't find Restructured Text's use of indentation to
> determine markup nearly as distasteful as I find python's.  This is
> probably because text markup is 10x easier than code markup (e.g.,
> I almost never have to worry about things like line continuations).


When it comes to hating significant whitespace, nothing comes close to Perl=
6:

    sub square {my $x =3D shift; return $x * $x}
    print square(1) * 2    # Prints 2.
    print square (1) * 2   # Prints 4.


    my %hash;                        # Empty hash.
    if %hash{1} {print "Found it"}   # No output.
    if %hash {1} {print "Found it"}  # Prints 'Found it'.


I rather take all Pythons significant whitespace rules (which aren't
that bad, and wouldn't require me to change my coding style) repeatedly
than Perl6 whitespace rules (which conflict with almost every line I
write) once.

Evil rules. Pure evil. Hates doesn't come close to describe it.


Abigail (not touching Perl6 with a 10-feet pole).

--iFRdW5/EC4oqxDHL
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.0 (GNU/Linux)

iD8DBQFDTrhXBOh7Ggo6rasRAhX2AJ9VHcAL9+FjOQGJJHta93OZeOMnhwCgt2xQ
PfKLH6JPBZjBj+UAB9XBCHY=
=KH+n
-----END PGP SIGNATURE-----

--iFRdW5/EC4oqxDHL--
There's stuff above here

Generated at 20:00 on 17 Oct 2005 by mariachi 0.52