On Sunday 28 Mar 2010 00:16:43 Harry Putnam wrote:
> Shlomi Fish <shlo...@iglu.org.il> writes:
> > It's my own notation (inspired by E-mail/Usenet conventions or the French
> > «...») for delimiting blocks, quotes, etc. Similar to HTML's
> > <pre>...</pre> or <blockquote>...</blockquote>. The meaning is that
> > whatever inside the "{{{" to "}}}" (or "<<<" to ">>>" or whatever) is
> > different from what's outside it and should be treated especially.
> 
> Ahh ok, but not sure, in that case how it adds to post that began this
> thread.

What do you mean?

> 
> > You cannot sort a single string. Do you want to sort @{ $hash{$nr} }. If
> > so, you can use:
> > 
> > {{{
> > sort { $a <=> $b } @{ $hash{$nr} }
> > }}}
> > 
> > Or:
> > 
> > {{{
> > sort { $a cmp $b } @{ $hash{$nr} }
> > }}}
> 
> When it's already clear you are suggesting a different way to sort.
> 

Well, in this case it was a bit redundant, but not in the general case when 
there's a large quote or block excerpt.

> No big deal, but to me it's just confusing and very odd looking.

Now you'll be me more used to it and can handle it.

> What's wrong with the customary practice of indenting offerings like
> that?

Several things:

1. The built-in text editor of my mail user agent (= KDE 4.4's KMail) does not 
support auto-indentation. As a result when writing E-mails I'll have to indent 
every line, or alternatively resort to using Vim which will inconvenience me.

2. Using indentation will give me less horizontal space for each line.

3. Some people who are used to HTML mailers confuse indentation with quoting.

4. Some mail clients (especially HTML-based ones, like those of 
http://groups.yahoo.com/ ) don't display leading whitespace in lines very well 
which will make the code block disappaear. 

5. Copy-and-pasting the indented code will require un-indenting it.

----

In short, I think using delimiters is the best solution.

Regards,

        Shlomi Fish

-- 
-----------------------------------------------------------------
Shlomi Fish       http://www.shlomifish.org/
Interview with Ben Collins-Sussman - http://shlom.in/sussman

Deletionists delete Wikipedia articles that they consider lame.
Chuck Norris deletes deletionists whom he considers lame.

Please reply to list if it's a mailing list post - http://shlom.in/reply .

--
To unsubscribe, e-mail: beginners-unsubscr...@perl.org
For additional commands, e-mail: beginners-h...@perl.org
http://learn.perl.org/


Reply via email to