Skip to content

Instantly share code, notes, and snippets.

@dorkrawk
Last active March 9, 2024 17:57
Show Gist options
  • Save dorkrawk/cab945e6f435387667ff16c0e65cb544 to your computer and use it in GitHub Desktop.
Save dorkrawk/cab945e6f435387667ff16c0e65cb544 to your computer and use it in GitHub Desktop.
Testing emjoi usage in Crystal.
# this works!
πŸ™ = 8
puts πŸ™
#> 8
# this doesn't work
class πŸ•
def eat
puts "πŸ‘"
end
end
pizza = πŸ•.new
pizza.eat
#> Syntax error in eval:4: expecting token 'CONST', not 'πŸ•'
# This does work, though!
class Binary🌳
def insert
# do stuff
end
end
🌳 = Binary🌳.new
🌳.insert
# tested with Crystal 0.24.1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment