On Wed, Dec 2, 2020 at 6:56 AM Ralph Mellor <ralphdjmel...@gmail.com> wrote:
> On Wed, Dec 2, 2020 at 7:08 AM Patrick R. Michaud <pmich...@pobox.com> > wrote: > > Nil.any_non_existent method always seems to return Nil. I'm not sure > where this is documented > > It's near the top of the `Nil` doc page you linked: > > > Any method call on `Nil` of a method that does not exist ... will > succeed and return `Nil`. > Does this explain why calling "dd" in the REPL returns Nil on the final line, but Nil doesn't seem to be returned on the final line when using "dd" from the Bash shell? user@mbook:~$ raku -e 'dd "0123456789";' "0123456789" user@mbook:~$ raku Welcome to 𝐑𝐚𝐤𝐮𝐝𝐨™ v2020.10. Implementing the 𝐑𝐚𝐤𝐮™ programming language v6.d. Built on MoarVM version 2020.10. You may want to `zef install Readline` or `zef install Linenoise` or use rlwrap for a line editor To exit type 'exit' or '^D' > dd "0123456789" "0123456789" Nil >