'threequal' == ===? I call it the sort-of-matches-operator but
I assume that is just me.
> Not all usages are considered official or will necessarily be
> treated equally.
>
> Terms that are extremely common outside our community and are used
> identically can probably be omitted from the list.
>
> Anyone?
>
>
> Hal
E
um... the push operator <<
some folks call it the less-than-less-than thing, but that seems soo long.
Zach
Isn't that the bit shift operator? :-)
> some folks call it the less-than-less-than thing, but that seems soo
> long.
robert
Noted. I usually call it the append operator.
Hal
In C++, it's often called the insertion operator. I have been thinking
of it as such in Ruby.
> I'm assembling a list of Ruby community "usages" and I want to
> make sure I haven't missed anything important.
>
> I have such things as: duck typing, threequal, spaceship
> operator, singleton method, singleton class, splat or unary
> unarray, multiple or parallel assignment, and (ehh) eigenclass.
You've neglected chunky bacon.
-mental
--
-Dan Nugent
should be in there anyway ;-)
What is it?
I mean, besides a shibboleth.
--
James Britt
So, if it operates like a duck...
Exactly.
I never understand why people think of duck typing as being unique to
dynamic languages. C++ has great support for static, generic
programming, and a lot of what Ruby does at run-time, C++ can do at
compile-time.
Of course, Ruby has plenty of advantages of its own. :)
Nothing more, I'd guess.
"Shibboleth" is also a shibboleth, I guess. Rather
self-referential.
Hal
Good catch!
--
James Britt
"Blanket statements are over-rated"
More etymology than self-reference - "a shibboleth" is simply a word
that fulfils the same role "shibboleth" did in its original context.
martin
> I'm assembling a list of Ruby community "usages" and I want to make
> sure I haven't missed anything important.
Bang methods, like Array#reject!.
-- Daniel
Which reminds me, the #-notation for methods would make a good
inclusion if it's not already there.
They don't call those doctors "quacks" for nothing.
Dan
Haha! No doubt HPL was influenced by real languages and words.
> ph'nglui mglw'nafh Cthulhu R'lyeh wgah'nagl fhtagn
If I may cut and paste... I saw a T-shirt recently like this:
WHICH PART OF
ph'nglui mglw'nafh Cthulhu R'lyeh wgah'nagl fhtagn
DON'T YOU UNDERSTAND?
And a similar one with Schroedinger's Equations...
Hal
True. But I'm tired of adding stuff, so this one will probably
have to slip through the cracks.
As long as people know what bang means, it's obvious.
Hal
That notation is defined in Pickaxe? Now this I want to see.
David Vallner
See the "Notation Conventions" section in the Preface. In my copy of
Pickaxe 2 it's on page xxix.
--
R. Mark Volkmann
Partner, Object Computing, Inc.
See? Found it :P
I was a bit confused by you using the word "defined", I'd probably say
"described", since Pickaxe isn't the reference document for conventions like
this. Then again, it just might be, I can't recall how the notation (or its
use in Ruby) originated and whether it was somehow canonized.
David Vallner
Does ri count as canonical? It comes with ruby correct? And it uses
the '#' notation.
Well, ri might just be following a convention that's been in use before the
tool existed. Not like I'd know. I was just wondering whether the notation is
just some extremely widespread bandwagon that sort of emerged and became
universally accepted, or if there was some "official" wossname that defined
the notation in the stricter meaning of "defined", Or c) It doesn't really
matter and I'm nitpicking because I should really go to sleep for a change.
Ah well. I'm not actually trying to (surprise!) make a point or anything...
However, if someone -does- know the history of the notation, it'd be
interesting trivia to know.
David Vallner