Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

Re^7: One to one file output idiom

by haukex (Chancellor)
on Jan 17, 2020 at 08:03 UTC ( #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 (Archbishop) 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
Node Status?
node history
Node Type: note [id://11111514]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others exploiting the Monastery: (2)
As of 2020-02-22 03:53 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    What numbers are you going to focus on primarily in 2020?










    Results (98 votes). Check out past polls.

    Notices?