RSS Amplifier

Andraž Bajt's blog · Jan 27, 2013

Chaining implicit conversion in scala

0
Sign in to vote or save

This page cannot be shown here. You can still read it on the original site — the toolbar below keeps your place in the directory.

Today I was hanging in the # scala IRC channel and somebody came along(forgot the nick, sorry) and asked about some compilation error . I deduced he was trying to chain implicit conversions. And this doesn’t work. Else compilation would take forever and would also compile some wrong code by inserting long strings of implicits. But then somebody else responded(I think nick started with d) and…

Today I was hanging in the #scala IRC channel and somebody came along(forgot the nick, sorry) and asked about some compilation error. I deduced he was trying to chain implicit conversions. And this doesn’t work. Else compilation would take forever and would also compile some wrong code by inserting long strings of implicits. But then somebody else responded(I think nick started with d) and gave a solution to implicit chaining. But I’m not giving it away yet, you’ll have to read a bit more.

Read on /posts/2013-01-27-chaining-implicits/

Comments

Nothing yet. Say the first thing.

    Sign in to join the conversation.