Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

Re^7: One to one file output idiom

by haukex (Archbishop)
on Jan 17, 2020 at 08:03 UTC ( [id://11111514]=note: print w/replies, xml ) Need Help??


in reply to Re^6: One to one file output idiom
in thread One to one file output idiom

FWIW, Path::Class::File and IO::Any also use "spew" (old versions of the File::Slurp docs used the term as well); Mojo::File uses "spurt". I think all of these method names are not meant to be taken 100% seriously ;-) (I also found IO::Barf, if you like it more direct)

Replies are listed 'Best First'.
Re^8: One to one file output idiom
by LanX (Saint) on Jan 17, 2020 at 14:03 UTC
    As I said, I think "slurp" is the culprit here.

    I'm fine with "spew" cause it's a general term.

    The "vomit" meaning is limited to human context, like in "to make someone spew".

    > I think all of these method names are not meant to be taken 100% seriously ;-)

    Yes, but wrong associations can lead to hard to debug misunderstandings.

    For instance wantarray is true in "list" context.

    This function should have been named wantlist() instead.

    Cheers Rolf
    (addicted to the Perl Programming Language :)
    Wikisyntax for the Monastery FootballPerl is like chess, only without the dice

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://11111514]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others sharing their wisdom with the Monastery: (3)
As of 2024-04-25 21:56 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found