call on nil methods silently fail
kokizzu opened this issue · 3 comments
kokizzu commented
For example:
123 println
will show nothing, that's unexpected..
rurban commented
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.
rurban commented
Hmm, maybe add a strict mode to throw an error on call on nil.
robotii commented
We could just pretend everything is wrapped in an implicit Maybe monad?