user-pic

Kahlil (Kal) Hodgson

  • About: Leaking memory all over the place.
Subscribe to feed Recent Actions from Kahlil (Kal) Hodgson

  • QM commented on On the relative readability of Perl and Python

    Thanks Ovid and Steffen Mueller for the anonymous sub tips. Some of these came up on http://www.perlmonks.org/?nodeid=1048128, with the goal of generating stack traces to report exceptions, where many callbacks are created on the fly. The local *ANON trick doesn’t affect svref2object returns.

    There is resistance to adding XS modules to all of our systems (there’s even resistance to adding pure Perl, though not as much).

    Next time it comes around, I would revisit the ideas brian puts forth in

  • QM commented on On the relative readability of Perl and Python

    In several places above there is still a small typo: != ‘bob’ should be ne ‘bob’.

  • Nathan Grigg commented on On the relative readability of Perl and Python

    You can always do if test: i += 1 , no newline required. This is about the same as the Perl example.

    For list comprehensions, nothing is preventing you from using line breaks to make things more readable:

    
    values = [x.value 
              for x in list
              if x.value > 4 and x.name != 'bob']
    
  • Joel Berger commented on On the relative readability of Perl and Python

    No, the example had a print (well say) in it too, including that it must be three lines, but again that’s just a nit

Subscribe to feed Responses to Comments from Kahlil (Kal) Hodgson

About blogs.perl.org

blogs.perl.org is a common blogging platform for the Perl community. Written in Perl and offering the modern features you’ve come to expect in blog platforms, the site is run by Dave Cross and Aaron Crane, with a design donated by Six Apart, Ltd.