Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

Re^5: One to one file output idiom

by jdporter (Canon)
on Jan 17, 2020 at 03:11 UTC ( #11111505=note: print w/replies, xml ) Need Help??


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

As a native speaker, I can tell you that "spew" here is completely natural. It's not a synonym of "vomit" and does not carry the negative overtones of that word. It's also not the same as "spit", for the same reason, as well as implying a different (greater) volume of matter being ejected. :-)

Replies are listed 'Best First'.
Re^6: One to one file output idiom
by Your Mother (Bishop) on Jan 17, 2020 at 16:31 UTC

    Not super common but it is a euphemism for vomit. There is a rather amusing pun about it in Egil’s Saga—Egil drinks till he’s sick and stands to nearly smother his excessively loquacious, one might say logorrheic :P, dinner host in vomit. When the dinner party responds in angry shock he says, paraphrased: He was spewing all night, so you can’t be mad at me for doing the same. It’s worth noting that vomit probably has 100, easy, synonyms/euphemisms/idioms in American English.

Re^6: One to one file output idiom
by LanX (Archbishop) on Jan 17, 2020 at 05:02 UTC
    After second thought ...

    It's "slurp" - eating noisily - which is the misnomer.

    To gulp would be a more accurate description for devouring a whole file.

    Spew would fit then.

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

      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)

        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

Re^6: One to one file output idiom
by LanX (Archbishop) on Jan 17, 2020 at 04:33 UTC
    https://www.merriam-webster.com/dictionary/spew

    spew verb spewed; spewing; spews Definition of spew (Entry 1 of 2) intransitive verb 1 : vomit 2 : to come forth in a flood or gush 3 : to ooze out as if under pressure : exude transitive verb 1 : vomit 2 : to send or cast forth with vigor or violence or in great quantity +a volcano spewing out ash —often used with out spew noun Definition of spew (Entry 2 of 2) 1 : matter that is vomited : vomit 2 : material that exudes or is extruded

    the cognate in German "speien" has mostly the same meanings

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

      Meh. I'm telling you, most speakers of modern English don't think of "spew" as a synonym for "vomit". Those other definitions are pretty much spot on, though.

      The one case where people use "spew" to mean "vomit" anymore is when they're using euphemisms, notably in the case of barfing due to alcohol consumption. :-)

      OMG, I'm gonna spew!
        most speakers of modern English don't think of "spew" as a synonym for "vomit".

        I cannot speak for most, but whenever I (as a native American English speaker) read that word, my mental voice is Skippy Squirrel, and it definitely has the "vomit" connotation for me; in fact, for me, every other usage of spew derives from the "vomit": a volcano spews forth lava because it's similar to the way that a human spews forth vomit, or an idiot spews forth nonsense because it's analogous to the way that a sick child spews out breakfast. If you don't have vomit as your default definition for spew, you're lucky, IMO, because it prevents some nasty mental images when people use "spew" for the other variants.

        If the subject is a person, it should mean vomiting.

        In German "speien" can also mean spitting out or with big force (like spitting out disgusting food or spitting with disgust onto s.o. face)

        I suppose it's not much different in English.

        As I already said, this might be accurate for writing a whole file at once, I don't see how "slurping" (which is actually a Dutch/German loan word) reflects "gulping" a whole file.

        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://11111505]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (4)
As of 2020-05-28 22:31 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    If programming languages were movie genres, Perl would be:















    Results (166 votes). Check out past polls.

    Notices?