Re: Re: This is kind of cool
"Mark Hahn" <[email protected]>
| Newsgroups | gmane.comp.lang.prothon.user |
|---|---|
| Message-ID | <00a301c459b7$d71f81b0$0d01a8c0@MarkVaio> |
Paul Prescod wrote: >> def ~%~(x, y): >> blah blah blah > > I can't find anything to indicate that Ruby lets you define your own > new operators. I guess I remembered wrong. I do know it let's you define the operators by just typing the symbols instead of names like add_. It would be easy to let you define new ones. I doubt that would make sense though. Just what we need is a lot of random unreadable symbols :-) Which gets us back to your idea which is readable since a label is between the tildes.