Dave Thomas
1/5/2009 12:01:00 AM
On Jan 4, 2009, at 5:06 PM, Tom Cloyd wrote:
> I wouldn't engage with a illegitimate copy - isn't playing fair at =20
> all. I completely believe in "intellectual property". My copy =20
> certainly WAS purchased from the Pragmatic Programmers website.
And we appreciate that :)
> Marvelous book, of course, but it does not, to my best knowledge, =20
> contain a complete list of operators. I've done everything I can =20
> think of to find it. I seriously doubt that it's there. The =20
> precedence table on 324 is about precedence, and not a primary =20
> presentation of operators and their function.
Which methods/operators are missing from the precedence table? I'll =20
add them.
?<char>, tho' is not an operator, any more than the quote is in "cat" =20=
or the slash in /cat/. In all three cases they're simply syntax for =20
literals.
> Here's the entry that IS there:
>
> Operator
> as method call 82, 335
> precedence 324
>
> To me, this is simply strange. Dave Thomas, whose contributions to =20
> the Ruby community are inestimably valuable, may see this thread, in =20=
> which case I hope he comments. I've been completely bewildered about =20=
> this for a long time.
Let me know what to add, and I'll definitely consider adding it. But =20
be aware that I don't really consider the concept of "an operator" to =20=
be particular primary in the description of the language, because in =20
Ruby there'll always be debate about just what _is_ an operator. The =20
precedence table is my best take on it=97I derived it from the parser, =20=
and I believe it contains every operator-like thing I could find in =20
there. But, as I said, I'd love to hear suggestions, as the third =20
edition is nearing completion, and I'm always open for ideas to make =20
it better.
Cheers
Dave=