r/ruby • u/cheshire137 • Sep 18 '14
I didn't realize that was a valid method name.
http://imgur.com/9UZUTFU2
28
u/kirun Sep 18 '14
Yeah, if your files are set to UTF-8 you can have all kinds of fun with your identifiers.
http://www.rubyinside.com/the-split-is-not-enough-whitespace-shenigans-for-rubyists-5980.html
3
u/s0vs0v Sep 18 '14
Oh my god, it hurts
11
u/400921FB54442D18 Sep 18 '14
I'm the kind of developer who, whenever I see clever tricks like that, I feel like this guy.
2
2
2
4
4
2
u/bigfig Sep 19 '14
I once created some mathematical methods using Greek characters. I guess it was poor form, but I thought it looked terrific and was briefer than spelling out the symbol "λ" as the word "lambda".
1
u/tomthecool Feb 03 '15
I have a friend who insists there should be a "λ" key on every programmer's keyboard.
1
9
u/cheshire137 Sep 18 '14
I checked
Sidekiq.methodsin my Rails console and found this Easter egg.