Skip to content

Instantly share code, notes, and snippets.

@thomasfl
Created January 26, 2011 08:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save thomasfl/796426 to your computer and use it in GitHub Desktop.
Save thomasfl/796426 to your computer and use it in GitHub Desktop.
A new super compact coding style for ruby ☺. Credits to zmalltalker for having the idea at last nights ruby meetup.
# encoding: UTF-8
def ✐(arg)
puts arg
end
☺ = true
✐ "Cool" if ☺
@drbrain
Copy link

drbrain commented Jan 26, 2011

It'll be more compact if you get rid of the useless parentheses.

@thomasfl
Copy link
Author

Yeah, you're right Dr. Brain.

@mwilden
Copy link

mwilden commented Jan 27, 2011

The new Algol!

@thomasfl
Copy link
Author

Yes, let's stop pretending ruby is a cool form of lisp. It's the new algol, god damn it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment