- About Scala
- Documentation
- Code Examples
- Software
- Scala Developers
How to make this Scala implicit conversion work?
Fri, 2011-12-09, 08:52
Posted this to SO a short while ago - anyone gurus here have an
answer? Thanks in advance.
http://stackoverflow.com/questions/8440122/how-to-make-this-scala-implic...
Fri, 2011-12-09, 12:11
#2
Re: Re: How to make this Scala implicit conversion work?
On Fri, Dec 9, 2011 at 1:28 AM, Sonnenschein wrote:
> Hi Yang,
>
> what about
>
> implicit def x2node2helper[A](x: XRelation[A]) = new Helper(x)
>
> Peter
> See also: Graph for Scala
I had a note near the bottom of my question explaining why this simple
solution isn't the one I'm seeking: it's to avoid having a
combinatorial explosion of implicit conversions to be defined.
Fri, 2011-12-09, 12:21
#3
Re: How to make this Scala implicit conversion work?
> combinatorial explosion of implicit conversions to be defined.
For more clarity, could you please show what you are not getting
implicitly work?
Hi Yang,
what about
implicit def x2node2helper[A](x: XRelation[A]) = new Helper(x)
Peter
See also: Graph for Scala