News for hackers. Stuff that matters.
Re:Java's records, Lombok's data, and Kotlin's data classes by asimpletune on Friday May 07, 2021 @04:08PM (#27080322)
You don’t have to use implicits though, but you’d be super happy they’re there should you ever be in a situation where they’re helpful
Re:Java's records, Lombok's data, and Kotlin's data classes by diroussel on Friday May 07, 2021 @04:41PM (#27080638)
Doesn’t a monad or for comprehension use implicits to find the right CanBuildFrom?

Are you suggesting to use scala without using for comprehensions? Or do you mean you don’t need to write your own?

It’s been a long time since I wrote scala, so may be getting it wrong.

Re:Java's records, Lombok's data, and Kotlin's data classes by valenterry on Friday May 07, 2021 @09:04PM (#27082647)
No it does not. A for-comprehension just requires that map/flatMap methods are available. No implicits or CanBuildFrom needed.
Re:Java's records, Lombok's data, and Kotlin's data classes by joshlemer on Friday May 07, 2021 @08:54PM (#27082584)
CanBuildFrom is gone in the 2.13 collections rewrite