Skip to content

[Scala 3] convert varargs splice : _* to *#873

Open
halotukozak wants to merge 2 commits into
AVSystem:scala-3from
halotukozak:03-07-varargs-splice
Open

[Scala 3] convert varargs splice : _* to *#873
halotukozak wants to merge 2 commits into
AVSystem:scala-3from
halotukozak:03-07-varargs-splice

Conversation

@halotukozak

Copy link
Copy Markdown
Contributor

Slice: 3.7 of Phase 3 (Scala 3 syntax modernization)
Merge order: Independent — can land any time (no overlap with 3.1/3.2/3.3/3.4/3.5/3.6)
Depends on: none
Base branch: upstream/scala-3 (not stacked)

Converts Scala 2 varargs splice foo(seq: _*) to Scala 3 foo(seq*) per stdlib-migration deprecation.

Pure call-site syntax. No source-compat impact for callers of unchanged signatures.

Sites updated:

  • core/js,jvm CrossUtils: wrappedArray, dictionary
  • core jiop JCollectionUtils.JIterable.apply
  • mongo MongoOrder.apply
  • atLeast.scala scaladoc updated to current syntax

sbt compile + Test/compile + scalafmtCheckAll exit 0. No new warnings, no new @nowarn/-Wconf.

Only remaining : _* hit is in disabled analyzer/ module (will-not-migrate / phase-deferred).

Scala 3 stdlib deprecates Scala 2 `foo(seq: _*)` syntax in favor of
bare `foo(seq*)`. Pure call-site syntax change with no source-compat
impact for callers of unchanged signatures.

- core/js,jvm CrossUtils: wrappedArray, dictionary call sites
- core jiop JCollectionUtils.JIterable.apply
- mongo MongoOrder.apply
- atLeast.scala scaladoc updated to current syntax
Slice 3.7: scala-2 `: _*` -> scala-3 `*` call-site syntax.
@halotukozak halotukozak added this to the Scala 3 milestone Jun 1, 2026
@halotukozak halotukozak marked this pull request as ready for review June 1, 2026 21:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant