The Strange Case of the Twiddle Wakka

The Untold Story of Ruby’s Strangest Operator

If you’ve ever tried to learn a programming language, you’ve probably encountered at least one combination of characters you had no idea how to pronounce. In Ruby, a language that dates back to the mid-90s and is now mostly used for the web, there are a whole bunch of these:

  • <=> is a spaceship operator.
  • ~> is … a twiddle wakka?

Software developer and science/tech writer. Python, Ruby on Rails, JavaScript, React/Redux, Java. Fascinated by the amazing stories behind today’s tech.

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store