gitwtfhub

wtf is scala-collection-compat?

jiminhsieh/scala-collection-compat — explained in plain English

Analysis updated 2026-07-18 · repo last pushed 2019-12-21

Audience · developerComplexity · 2/5DormantSetup · moderate

TL;DR

A compatibility library and migration tool that lets Scala code use the newer 2.13 collections syntax while still supporting 2.11 and 2.12.

Mindmap

mindmap
  root((repo))
    What it does
      Bridge 2.13 collection APIs
      Support older Scala versions
      Automate code migration
    Tech stack
      Scala
    Use cases
      Support multiple Scala versions
      Migrate to 2.13 syntax
      Maintain cross version libraries
    Audience
      Scala library maintainers
      Developers upgrading Scala

Code map

Detail Auto

An interactive map of this repo's files and how they connect — its source is parsed live in your browser. Click Visualize to build it.

filefunction / class

Why would anyone build with this?

REASON 1

Write Scala 2.13 collection syntax that still compiles on 2.11 and 2.12.

REASON 2

Maintain a library that users on multiple Scala versions depend on.

REASON 3

Use the automated migration tool to rewrite existing code to the new syntax.

REASON 4

Gradually upgrade a large codebase to Scala 2.13 without breaking older support.

What's in the stack?

Scala

How it stacks up

jiminhsieh/scala-collection-compat0verflowme/alarm-clock0verflowme/seclists
LanguageCSS
Last pushed2019-12-212022-10-032020-05-03
MaintenanceDormantDormantDormant
Setup difficultymoderateeasyeasy
Complexity2/52/51/5
Audiencedevelopervibe coderops devops

Figures from each repo's GitHub metadata at analysis time.

How do you spin it up?

Difficulty · moderate Time to first run · 30min

Migration tool has separate modes for apps versus libraries maintaining backward compatibility.

Yoink these prompts

Prompt 1
Add jiminhsieh/scala-collection-compat to my project so I can write 2.13-style collection code on Scala 2.12.
Prompt 2
Explain the difference between the app migration mode and the library migration mode in this tool.
Prompt 3
Show me how xs.to(List) becomes compatible across Scala 2.11, 2.12, and 2.13 using this library.
Prompt 4
Help me run the automated migration tool on my codebase to update collection syntax.

Frequently asked questions

wtf is scala-collection-compat?

A compatibility library and migration tool that lets Scala code use the newer 2.13 collections syntax while still supporting 2.11 and 2.12.

Is scala-collection-compat actively maintained?

Dormant — no commits in 2+ years (last push 2019-12-21).

How hard is scala-collection-compat to set up?

Setup difficulty is rated moderate, with roughly 30min to a first successful run.

Who is scala-collection-compat for?

Mainly developer.

View the repo → Decode another repo

This repo across BitVibe Labs

Don't trust strangers blindly. Verify against the repo.