Home     |     .Net Programming    |     cSharp Home    |     Sql Server Home    |     Javascript / Client Side Development     |     Ajax Programming

Ruby on Rails Development     |     Perl Programming     |     C Programming Language     |     C++ Programming     |     IT Jobs

Python Programming Language     |     Laptop Suggestions?    |     TCL Scripting     |     Fortran Programming     |     Scheme Programming Language

Cervo Technologies
The Right Source to Outsource

MS Dynamics CRM 3.0

Ruby Programming Language

Methods as infix operators WAS: Defending Ruby's OOP

John Joyce wrote, On 5/15/2007 4:21 PM:

I like this idea.  I was thinking

when a==1 someCode

is quite easy, but we need infix on methods to do

somecode when a==1

This isn't the first time I've wished we could have methods acting as
infix operators.  Anyone else up for that, and are there any plans to
add it to Ruby?  Assuming there is a way to do it that wouldn't muck up
everything else syntactically, would such a feature be desired and have
a possibility of being accepted into the language if someone were to
code it?


Add to del.icio.us | Digg this | Stumble it | Powered by Megasolutions Inc