bug icon indicating copy to clipboard operation
bug copied to clipboard

Buffer.padTo calls it shrinkable instead of growable

Open som-snytt opened this issue 2 years ago • 2 comments

Reproduction steps

https://www.scala-lang.org/api/current/scala/collection/mutable/Buffer.html#padToB%3E:A:CC[B]

Problem

It's growable & shrinkable, but growing methods should call it growable.

There is a ticket for nuanced CC vs C or something, so it is probably the same effort to chisel how collections refer to themselves in doc macros.

som-snytt avatar Nov 16 '23 19:11 som-snytt

@scala/collections

SethTisue avatar Jan 26 '24 22:01 SethTisue

Could use a George Costanza "I was in the pool!" meme.

som-snytt avatar Jan 27 '24 01:01 som-snytt

dotty says sequence

Image

actually ArrayBuffer already has coll defined and is correct on scala 2 but wrong on scala 3:

Image

picture or it didn't happen

Image

sprinkling coll on Buffer

Image

ArrayBuffer already correct at https://www.scala-lang.org/api/2.13.15/scala/collection/mutable/ArrayBuffer.html

Image

som-snytt avatar Mar 31 '25 21:03 som-snytt