scala-library-next icon indicating copy to clipboard operation
scala-library-next copied to clipboard

Add IterableOps.groupFlatMap

Open ashleymercer opened this issue 3 years ago • 6 comments

Proposed addition of IterableOps.groupFlatMap. Some questions before this gets merged:

  • I see there are extension methods on IterableOnce which would be more general, but I don't think it's possible to have IterableOnceOps.groupFlatMap since we need access to iterableFactory for building the new collection?
  • what is the situation regarding copyright for contributions in this repo? For now I've left the copyright assigned to my employer (Skylight IPV Ltd) but I suspect that won't be acceptable in the long run

Fixes #135

ashleymercer avatar Oct 22 '22 14:10 ashleymercer

opinions from @scala/collections crew?

SethTisue avatar Nov 23 '22 00:11 SethTisue

what is the situation regarding copyright for contributions in this repo?

The new file will need to have the standard copyright notice that the other files have ("...Copyright EPFL and Lightbend..."). I'm afraid we'd be unable to accept the contribution otherwise.

SethTisue avatar Nov 23 '22 00:11 SethTisue

@SethTisue could you give some history (for the uninitiated) as to why the assignment to Lightbend is required? Obviously they play a central role in the Scala community generally, but it seems odd to me that a contribution to the Scala "core" should require copyright assignment to a private commercial entity, rather than just EPFL.

ashleymercer avatar Dec 04 '22 11:12 ashleymercer

The Scala copyright has been shared by EPFL + Lightbend since the company was founded (as Typesafe) in 2011. I didn't join the company until a few years later, so I wasn't involved when that was arranged. At the time, the company had a more central role in Scala's development. (We do still maintain Scala 2, and we also participate in the Scala 3 effort, as per https://scala-lang.org/community/#whos-behind-scala .)

Regardless, I'm noticing that https://www.lightbend.com/contribute/cla/scala/current doesn't actually mention Lightbend, only EPFL. So if you wanted for your contribution to be only copyright EPFL and not also copyright Lightbend, that request might actually be granted, I don't know. I doubt Lightbend would care, but regardless, the request would have to be handled by the Scala Center. cc @julienrf

SethTisue avatar Dec 04 '22 15:12 SethTisue

https://contributors.scala-lang.org/t/lightbend-copyright-assignment-required-for-scala-contributions/6019 is a better place for any further discussion around copyright.

SethTisue avatar Dec 05 '22 14:12 SethTisue