Stories
Slash Boxes
Comments
NOTE: use Perl; is on undef hiatus. You can read content, but you can't post it. More info will be forthcoming forthcomingly.

All the Perl that's Practical to Extract and Report

The Fine Print: The following comments are owned by whoever posted them. We are not responsible for them in any way.
 Full
 Abbreviated
 Hidden
More | Login | Reply
Loading... please wait.
  • I'm afraid I'm on the "chained setters are stupid" side of things. What exactly are you accomplishing? Mostly, folks who think it's cool seem to be rationalizing an attempt to fit more junk on one line. There's nothing intuitive about it and it's probably just going to cause confusion down the road.
    • So, if you can code real fast this way, does that make you a chain smoker?

      It might be nice to have a syntax that factored out the object from a sequence of method calls to the same object. Something like:

      (@return list) = $object-->>(
                            -> meth1(args),
                            -> meth2(other args),
                            -> meth3(la la la)
                         );

      Reading a series of method calls carefully to verify that they are really all being applied to exactly the same object (or discovering a typo the meant that they were' all being applied to the same object) is the sort of work that I'd rather let a computer do for me, or rather, let have a computer make unnecesary.