Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.ruby > #7221

Re: "Put" in Ruby

From Kaz Kylheku <545-066-4921@kylheku.com>
Newsgroups comp.lang.ruby
Subject Re: "Put" in Ruby
Date 2016-04-16 01:39 +0000
Organization Aioe.org NNTP Server
Message-ID <20160415183500.347@kylheku.com> (permalink)
References <d720c9a9-3943-45d9-83a1-ff3cf224aaef@googlegroups.com>

Show all headers | View raw


On 2016-04-15, Cai Gengyang <gengyangcai@gmail.com> wrote:
> First off, puts is not a function. It's sole purpose is to have a
> side-effect (printing something to the console), whereas functions
> cannot have side-effects ... that's the definition of "function",
> after all.

If you can't write and debug a function, might as well have an
opinion on what it is and isn't!

Back to comp.lang.ruby | Previous | NextPrevious in thread | Find similar


Thread

"Put" in Ruby Cai Gengyang <gengyangcai@gmail.com> - 2016-04-15 08:23 -0700
  Re: "Put" in Ruby Sebastian Christ <rudolfo.christ@gmail.com> - 2016-04-15 20:57 +0200
    Re: "Put" in Ruby Robert Klemme <shortcutter@googlemail.com> - 2016-04-16 01:45 +0200
      Re: "Put" in Ruby Sebastian Christ <rudolfo.christ@gmail.com> - 2016-04-16 11:52 +0200
        Re: "Put" in Ruby Robert Klemme <shortcutter@googlemail.com> - 2016-04-16 13:40 +0200
  Re: "Put" in Ruby Robert Klemme <shortcutter@googlemail.com> - 2016-04-16 01:50 +0200
  Re: "Put" in Ruby Kaz Kylheku <545-066-4921@kylheku.com> - 2016-04-16 01:39 +0000

csiph-web