[Chicago] Ode to <>

Brian Ray bray at sent.com
Fri Sep 1 01:01:44 CEST 2006


On Aug 31, 2006, at 5:55 PM, Brian Ray wrote:
>
> Ok, this was not exactly what I was talking about. Interesting,  
> none the less.
>
> More, it may be handy to say:
> 	
> class ...
>
>   def operator !=(self, rhs):
>     if self.something != rhs.something:
>       return True
>     return False

hrm, am I forgetting about decorators? Maybe something close:

class ...
	def !=(x):
		return Infix(x)

	@!=
	def ...
	
--bhr


More information about the Chicago mailing list