«« Next » « Previous
«« Next » « Previous

Link Details

You pick the winners! Login and vote now.
Link 38208 thumbnail

By jicksta
via jicksta.com
Published: Aug 30 2007 / 23:43

Superators is a new Ruby library that, with only a bit of fancy Ruby trickery (no C extensions), new operators can be defined such as -~+~-, ++, <---, =~~, and so forth. Check out the code examples.
  • 12
  • 1
  • 1138
  • 210

Comments

Add your comment
User 207602 avatar

Jim Wilson replied ago:

0 votes Vote down Vote up Reply

That's really slick - tricking Ruby into treating multiple successive unary operators as a single new operator. I'm impressed!

Add your comment


Html tags not supported. Reply is editable for 5 minutes. Use [code lang="java|ruby|sql|css|xml"][/code] to post code snippets.