puts 'foo' # => true?

  • Thread starter Eero Saynatkari
  • Start date
E

Eero Saynatkari

Would it cause problems for Kernel.puts to return true
rather than nil? It is not a radical enhancement or anything
but it would enable things like this:

foo or puts 'No foo!' and exit

Would anyone's code break?


E
 
J

JB Eriksson

------=_Part_4883_5089274.1131232837095
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable
Content-Disposition: inline

foo or (puts 'no foo!').nil?

Would it cause problems for Kernel.puts to return true
rather than nil? It is not a radical enhancement or anything
but it would enable things like this:

foo or puts 'No foo!' and exit

Would anyone's code break?


E

------=_Part_4883_5089274.1131232837095--
 

Ask a Question

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

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,780
Messages
2,569,611
Members
45,270
Latest member
TopCryptoTwitterChannels_

Latest Threads

Top