• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • Jeanne Boyarsky
  • Tim Cooke
  • Liutauras Vilda
  • paul wheaton
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Frits Walraven
  • Piet Souris
  • Himai Minh

Programming Scala: Scalability - implicit conversion deprecation

Ranch Hand
Posts: 58
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello Dean,

In your opinion, with deprecation of implicit conversions in Scala 3, do you think it better for newcomers to learn 'extension methods and givens' or one should still start with learning implicit conversions in order to work with Spark (I don't think Spark will migrate to Scala 3 quickly enough) and later move to Scala 3?
Do you compare the two (implicit conversion and givens) in your book?

Posts: 23
Mac OS X Scala Monad
  • Likes 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi, Alex,

If you are working on a Scala3 code base only, then definitely just learn extension methods, givens, etc. Unfortunately, most people will work with mixed Scala 2 and 3 code bases for a while, so you have to understand both forms. They interoperate well, fortunately. I provide in-depth coverage of both forms in the book, for this reason.

I don't recall that you need to use implicits a lot when writing Spark apps, even though it uses them in the implementation. So that might make things easier.

Therefore, I think I would learn about extension methods, etc. first, because I think the new idioms are better at showing good uses for these powerful capabilities. Then you might need to learn the syntax for Scala 2 equivalents, but hopefully the core ideas of why they are useful will already be familiar.

-- Dean
Wink, wink, nudge, nudge, say no more, it's a tiny ad:
Free, earth friendly heat - from the CodeRanch trailboss
    Bookmark Topic Watch Topic
  • New Topic