4 ms·
I think def's return value means returning symbol rather than nil? I've been waiting for it for ten years, I had almost forgotten why I wanted it in the first
by riffraff 13y ago
I think def's return value means returning symbol rather than nil?
I've been waiting for it for ten years, I had almost forgotten why I wanted it in the first place :)
- _anshulk 13y agoSo, this would mean that private def foo end will now work?
- invisiblefunnel 13y agoYes: https://eval.in/49833 https://eval.in/49833
- transfire 13y agoYes. And it is somewhat surprising. Matz must have rejected this idea a dozen times. It was certainly one of the oldest feature requests around. Hard to imagine what must have changed his mind. I've rarely seem Matz change his mind.
- riffraff 13y agoI seem to recall the issue was more with returning UnboundMethod objects than with symbols, but possibly what's changed is the fact that now symbols can be GCed?
- charlysisto 13y agoPlease tell us, what's the use case ?