perl11/potion

call on nil methods silently fail

kokizzu opened this issue · 3 comments

For example:

  123 println

will show nothing, that's unexpected..

Agreed. In historic context this was one of why's early decisions, to just return nil on missing methods.
I believe he wanted to allow catchable exceptions on those, but didn't have those implemented yet.

I'll see what I can do. Both issues need to be fixed. segv on nil calls and silence on missing methods.

Hmm, maybe add a strict mode to throw an error on call on nil.

We could just pretend everything is wrapped in an implicit Maybe monad?