There's no implicit conversion here just a list, with a :: method, taking x as an argument
Each and every person reading this list is more than intelligent enough to understand Scala - feel free to state if you think you're not though! Seriously folks, we all know *much* more complicated stuff than this but just take it for granted because of familiarity, imagine trying to explain the following to a non-programmer: you shouldn't use == to test for equality, you must use equals() and that equals must be defined to accept an Object as the argument and that it will fail if x in `x.equals(y)` is null except for primitives, which can't be null but which aren't actually objects, and therefore can't have any methods, including equals() so, actually, you do have to use == after all and that's just to check if two things are the same... On 9 August 2010 10:58, Ben Schulz <[email protected]> wrote: > On 9 Aug., 11:47, Viktor Klang <[email protected]> wrote: > > On Mon, Aug 9, 2010 at 11:39 AM, Ben Schulz <[email protected]> wrote: > > > On 9 Aug., 11:02, Kevin Wright <[email protected]> wrote: > > > > any operator ending with a `:` is also right associative. So > > > > x :: someList > > > > is equivalent to someList.::(x) > > > > > I think you just proved Fabrizio's point (and this is a one-line > > > example). ;) > > > > *laughs* > > If you can't remember that suffix-colon means right-associative, you > can't > > be expected to remember that * has higher precedence than +, which > probably > > means you already have a difficult enough life. ;) > I'm talking about the order of evaluation. And frankly I'm baffled as > to why someList would be subject to implicit conversion before x, > baffled. > > With kind regards > Ben > > -- > You received this message because you are subscribed to the Google Groups > "The Java Posse" group. > To post to this group, send email to [email protected]. > To unsubscribe from this group, send email to > [email protected]<javaposse%[email protected]> > . > For more options, visit this group at > http://groups.google.com/group/javaposse?hl=en. > > -- Kevin Wright mail/google talk: [email protected] wave: [email protected] skype: kev.lee.wright twitter: @thecoda -- You received this message because you are subscribed to the Google Groups "The Java Posse" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/javaposse?hl=en.
