Open noresttherein opened 2 months ago
Probably an oversight at https://github.com/scala/scala/commit/79db90986a2f26aeea39e586cabda2926fb69987 where there is explanation or back story.
Probably the signature can't change until they unfreeze the library, but someone could add a line of doc which would have to be reverted later.
I know Martin Odersky is the Scala 3 principal, but I don't know what their principles are.
@scala/collections
Scala 2.13.14
Problem
concat
accepts[U >: Char] IterableOnce[U]
, but++
onlyIterable[U]
. I'm sorry if it is as intended, by there is no comment as to why, docs explicitly mention it as an alias, which somewhat implies equivalent signatures, and it seems to go against the Scala 3 principles.BTW, there is also
Map.+
without aMap.add
, but that's a minor inconsistency, certainly not a bug.