Skip to content

Bring three instructions.append.md files up to Scala 3 - #1017

Merged
rabestro merged 1 commit into
mainfrom
instructions-append-scala-3
Nov 14, 2026
Merged

rabestro merged 1 commit into
mainfrom
instructions-append-scala-3

Conversation

@rabestro

Copy link
Copy Markdown
Member

Three instructions.append.md files still gave Scala 2 advice:

  • robot-name suggested a Stream "with its built-in cache"; Scala 3 has no Stream. It now suggests remembering the names already given out, or taking names one by one from all of them in random order, e.g. from an Iterator or a LazyList (the two approaches on the Dig deeper tab).
  • nucleotide-count explained that Either became right-biased in 2.12, linked a pre-2.12 tutorial about RightProjection, and used the deprecated x.right.get / x.left.get. It now has one sentence on right bias, links the Scala 3 book's "Functional Error Handling", uses x.toOption.get / x.swap.toOption.get in the "don't unwrap" example, and writes the examples in Scala 3 syntax. The rules themselves are unchanged.
  • roman-numerals said unfoldLeft/Right is missing from the library and linked a 2009 blog post. unfold has been in the collections since 2.13, so it now points at List.unfold in the current Scaladoc with a three-line example.

Every snippet compiles without a warning on Scala 3.9.0 (-deprecation -feature), and the unfold example prints what its comment says. Only docs change, so the commit carries [no important files changed].

These files are translated, so i18n / completeness needs the ready-to-translate label once the text is approved.

Part of #914: it ticks the last three items under "Docs and approaches".

🤖 Generated with Claude Code

- robot-name: suggest an Iterator or a LazyList instead of Stream, which
  Scala 3 no longer has, and say what to take from it.
- nucleotide-count: drop the Scala 2.12 notes and the pre-2.12 tutorial in
  favour of the Scala 3 book, replace the deprecated `x.right.get` and
  `x.left.get`, and write the examples in Scala 3 syntax.
- roman-numerals: `unfold` has been in the collections since 2.13; point at
  `List.unfold` with a short example instead of a 2009 blog post.

Every snippet compiles without a warning on Scala 3.9.0.

[no important files changed]

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@rabestro rabestro self-assigned this Nov 14, 2026
@rabestro
rabestro requested review from a team, IsaacG and glennj November 14, 2026 20:48
@github-actions

Copy link
Copy Markdown

Hello 👋 Thanks for your PR.

This repo does not currently have dedicated maintainers. Our cross-track maintainers team will attempt to review and merge your PR, but it will likely take longer for your PR to be reviewed.

If you enjoy contributing to Exercism and have a track-record of doing so successfully, you might like to become an Exercism maintainer for this track.

Please feel free to ask any questions, or chat to us about anything to do with this PR or the reviewing process on the Exercism forum.

(cc @exercism/cross-track-maintainers)

exercism-i18n Bot added a commit to exercism/i18n that referenced this pull request Nov 14, 2026
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
@exercism-i18n

exercism-i18n Bot commented Nov 14, 2026

Copy link
Copy Markdown

This PR has been translated 🚀

@rabestro
rabestro merged commit 9af176b into main Nov 14, 2026
10 of 11 checks passed
@rabestro
rabestro deleted the instructions-append-scala-3 branch November 14, 2026 21:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ready-to-translate The English in this PR is final; queue its translations

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants