>>>>> "7" == 7  <7stud.7s...@gmail.com> writes:

  7> On Mon, Feb 8, 2010 at 9:33 PM, Uri Guttman <u...@stemsystems.com> wrote:
  >> >>>>> "7" == 7  <7stud.7s...@gmail.com> writes:
  >> 

  7> they both read fine in english which is why they we included by
  >> larry.


  7> They don't both read fine.  To many people, unless is a confusing
  7> construct.  Larry has made plenty of mistakes designing perl.

your opinion on unless is weak with anonymous posting. most decent
hackers in perl use unless. it is fine and well understood. yes, larry
made mistakes but unless isn't one of them.

  7> Because unless and until statements are harder to maintain, NO ONE
  >> should
  7> use them--least of all beginners.
  >> 
  7> Because unless and until statements are harder to *read and maintain*,
  >> NO ONE
  7> should use them--least of all beginners.
  >> 
  >> wrong again. unless is very commonly used by decent perl hackers. i
  >> teach its use when i can.


  7> Then you are teaching poor coding style.

sorry to disappoint you but i disagree. and having done perl training,
technical review of books, code review for many customers, i think i can
say what is good perl style. unless is fine perl style. again, your view
is weakened by anonymity. think about that.


  >> obviates the need for extraneous ! ops and
  >> reads better as it is one word vs 'if not'


  7> 'if not' is two words but it is not more easily understood than 'abaca';
  7> therefore I find your 'number of words' test faulty.  I would imagine that
  7> most people have to mentally translate 'unless' to 'if not' anyway.

your imagination is faulty. fix it.

uri

-- 
Uri Guttman  ------  u...@stemsystems.com  --------  http://www.sysarch.com --
-----  Perl Code Review , Architecture, Development, Training, Support ------
---------  Gourmet Hot Cocoa Mix  ----  http://bestfriendscocoa.com ---------

-- 
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