Why "Kernel.puts" and not "Kernel.put"?

Discussion in 'Ruby' started by shadytrees@gmail.com, Apr 7, 2006.

  1. Guest

    It puzzles me since other methods such as "Array.fill" or
    "String.slice" all use the imperative mood, the one without an "s"
    attached to a verb, but "Kernel.puts" uses third-person singluar, the
    one with an "s." Is there a reason behind the different naming?
    , Apr 7, 2006
    #1
    1. Advertising

  2. wrote:
    > It puzzles me since other methods such as "Array.fill" or
    > "String.slice" all use the imperative mood, the one without an "s"
    > attached to a verb, but "Kernel.puts" uses third-person singluar, the
    > one with an "s." Is there a reason behind the different naming?

    `puts' and `gets' are not words used solely by Ruby. In fact, I think
    practically all programming languages use them.

    I've always thought they were abbreviations of `put string' and `get
    string', respectively.


    Daniel
    Daniel Schierbeck, Apr 8, 2006
    #2
    1. Advertising

  3. Guest

    , Apr 8, 2006
    #3
  4. Guest

    Awesome. Thanks.
    , Apr 8, 2006
    #4
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Horace Nunley

    why why why does function not work

    Horace Nunley, Sep 27, 2006, in forum: ASP .Net
    Replies:
    1
    Views:
    439
    =?Utf-8?B?UGV0ZXIgQnJvbWJlcmcgW0MjIE1WUF0=?=
    Sep 27, 2006
  2. Mr. SweatyFinger

    why why why why why

    Mr. SweatyFinger, Nov 28, 2006, in forum: ASP .Net
    Replies:
    4
    Views:
    838
    Mark Rae
    Dec 21, 2006
  3. Mr. SweatyFinger
    Replies:
    2
    Views:
    1,671
    Smokey Grindel
    Dec 2, 2006
  4. Skybuck Flying
    Replies:
    16
    Views:
    643
    tragomaskhalos
    Aug 25, 2007
  5. Andreas S
    Replies:
    3
    Views:
    236
    Eric Hodel
    Dec 9, 2006
Loading...

Share This Page