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
def does not return nil #2029
Comments
|
Here is a use case: def foo(a, b = nil)
launch_missiles if b
end
foo 10,
def bar
end |
|
No response yet? I guess Rubinius is dead ever since Evan left. QED. |
|
I can't see anyone depending on def's return value and the Rubinius behavior is better. Can you show me real world code that has a problem with returning a CompiledMethod?
On Nov 18, 2012, at 7:38 AM, Konstantin Haase notifications@github.com wrote:
|
|
I suggest you use PHP if you want compatibility with all the things done wrong in MRI. |
|
Has someone been working on a metacircular PHP implementation? |
|
I believe Facebook is the biggest commercial effort pushing PHP forward. You may be able to add a backend to the compiler that emits C code to emit PHP instead. I'd first consider emitting Javascript and then use CoffeeScript to emit Haskell, which should have a lot of tools for emitting PHP. However, you may want to emit Scala instead so you can benefit from the Clojure libraries on the JVM. |
|
lol. |
|
At least PHP supports fibers. |
|
It is impossible to compete with all the goodness that is PHP. |
|
Yeah, let's just give up. |
|
Well, I'm not willing to throw in the towel just yet. We return non- |
|
I once started working on a tool that converted Ruby into PHP but I got so confused by this issue that I went ahead and made |
I'm not sure when exactly this would matter, but since @rkh brought it up on Twitter...
The text was updated successfully, but these errors were encountered: