|
|
Log in / Subscribe / Register

Vincent: Perl 5.16 and Beyond

Vincent: Perl 5.16 and Beyond

Posted Sep 14, 2011 15:26 UTC (Wed) by rfunk (subscriber, #4054)
In reply to: Vincent: Perl 5.16 and Beyond by HelloWorld
Parent article: Vincent: Perl 5.16 and Beyond

Why would I write $name."'s dog" when I can write the much more readable "${name}'s dog" ?
(And last I heard, Perl's concatenation was slightly slower than interpolation anyway, though I care less about that than about concatenation being less readable than interpolation.)


to post comments

Vincent: Perl 5.16 and Beyond

Posted Sep 14, 2011 15:38 UTC (Wed) by HelloWorld (guest, #56129) [Link] (3 responses)

> Why would I write $name."'s dog" when I can write the much more readable "${name}'s dog" ?
Which of these is more readable is entirely subjective, so you don't have much of a point.

Vincent: Perl 5.16 and Beyond

Posted Sep 14, 2011 15:51 UTC (Wed) by rfunk (subscriber, #4054) [Link] (1 responses)

Oh yeah, I forgot, we're talking about Perl here, so nobody cares about readability.

Vincent: Perl 5.16 and Beyond

Posted Sep 14, 2011 18:43 UTC (Wed) by HelloWorld (guest, #56129) [Link]

Sorry, but you don't make any sense whatsoever.

Vincent: Perl 5.16 and Beyond

Posted Sep 14, 2011 17:36 UTC (Wed) by k8to (guest, #15413) [Link]

Readability is not subjective, because there are testable human norms which exist, and readability is generally concerned with the overall result.

Vincent: Perl 5.16 and Beyond

Posted Sep 14, 2011 23:40 UTC (Wed) by alankila (guest, #47141) [Link] (1 responses)

This line of argument misses the point. What I dislike is two competing ways to write the same thing, the other which is not even used but still isn't removed. I used this to illustrate the fact that Perl is backwards compatible to a fault.

Vincent: Perl 5.16 and Beyond

Posted Sep 15, 2011 0:19 UTC (Thu) by dlang (guest, #313) [Link]

yes perl maintains backwards compatibility and many ways to do the same thing.

for some people this is a problem

for other people this is part of the great power of perl and why they love to use it.

but in any case, this shouldn't be news to anyone.


Copyright © 2026, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds