Re: Re: This is kind of cool

Paul Prescod <[email protected]>
Newsgroups gmane.comp.lang.prothon.user
Message-ID <[email protected]>
Mark Hahn wrote:

>...
> 
> If we wanted user-defined operators I'd argue for Ruby's solution. They let
> you define symbols the same as labels.  They make an exception allowing
> arbitrary symbols only after the "def" in that one place.
> 
>     def +(a, b):
>         blah blah blah
> 
>     def ~%~(x, y):
>         blah blah blah

I can't find anything to indicate that Ruby lets you define your own new 
operators.

  Paul Prescod
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.