Skip to content

Instantly share code, notes, and snippets.

@dorkrawk
Last active March 9, 2024 17:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • 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