Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

call on nil methods silently fail #79

Open
kokizzu opened this issue Mar 17, 2015 · 3 comments
Open

call on nil methods silently fail #79

kokizzu opened this issue Mar 17, 2015 · 3 comments
Assignees

Comments

@kokizzu
Copy link

kokizzu commented Mar 17, 2015

For example:

  123 println

will show nothing, that's unexpected..

@rurban rurban self-assigned this Mar 17, 2015
@rurban
Copy link
Member

rurban commented Mar 17, 2015

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 rurban changed the title Show error when function not defined call on nil methods silently fail Mar 17, 2015
@rurban
Copy link
Member

rurban commented Oct 17, 2015

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

@robotii
Copy link
Contributor

robotii commented Nov 6, 2015

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants