# Scala Improvement Process

**URL:** https://contributors.scala-lang.org/c/sip/13.md

[Latest](https://contributors.scala-lang.org/latest.md) · [Categories](https://contributors.scala-lang.org/categories.md)

---

## [About the Scala Improvement Process category](https://contributors.scala-lang.org/t/about-the-scala-improvement-process-category/121)

<div class="topic-metadata">

**Author:** [@jvican](https://contributors.scala-lang.org/u/jvican)\
**Replies:** 0

</div>

Pre-SIP discussions, and anything related with the SIP process. Do you want to get feedback on an early proposal? Would you like to discuss a proposal under review? Do you have any questions for the Commitee members? If…

---

## [Positional named args](https://contributors.scala-lang.org/t/positional-named-args/7588)

<div class="topic-metadata">

**Author:** [@som-snytt](https://contributors.scala-lang.org/u/som-snytt)\
**Replies:** 3\
**Last updated:** [November 28, 2026, 1:58am UTC](https://contributors.scala-lang.org/t/positional-named-args/7588 "2026-11-28T01:58:44Z")

</div>

You’re not allowed to name unnamed things, per the explainer for named tuples. To address Odd compile error for \`indexOf\` with named arg · Issue #27054 · scala/scala3 · GitHub , Backquoted named args are positional for …

---

## [Pre-SIP: Bindings in while and if conditions](https://contributors.scala-lang.org/t/pre-sip-bindings-in-while-and-if-conditions/7567)

<div class="topic-metadata">

**Author:** [@mberndt](https://contributors.scala-lang.org/u/mberndt)\
**Replies:** 13\
**Last updated:** [November 4, 2026, 8:53am UTC](https://contributors.scala-lang.org/t/pre-sip-bindings-in-while-and-if-conditions/7567 "2026-11-04T08:53:43Z")

</div>

Hi everybody, Many loops need to compute something before they can decide whether to continue. This is the classic loop-and-a-half problem. In Scala today, that means duplicating code, using a var with a dummy initial v…

---

## [Pre-SIP: A New Type for Optionals and Error Handling (2)](https://contributors.scala-lang.org/t/pre-sip-a-new-type-for-optionals-and-error-handling-2/7533)

<div class="topic-metadata">

**Author:** [@odersky](https://contributors.scala-lang.org/u/odersky)\
**Replies:** 104\
**Last updated:** [October 19, 2026, 6:35pm UTC](https://contributors.scala-lang.org/t/pre-sip-a-new-type-for-optionals-and-error-handling-2/7533 "2026-10-19T18:35:14Z")

</div>

A New Type for Optionals and Error Handling \[I accidentally deleted a previous post with the same title. The original post is re-instantiated here.\] When it comes to optionals and error handling, do you prefer safety or…

---

## [Pre-SIP: Optional parameters by symetry with varargs](https://contributors.scala-lang.org/t/pre-sip-optional-parameters-by-symetry-with-varargs/7534)

<div class="topic-metadata">

**Author:** [@Sporarum](https://contributors.scala-lang.org/u/Sporarum)\
**Replies:** 6\
**Last updated:** [September 15, 2026, 9:10pm UTC](https://contributors.scala-lang.org/t/pre-sip-optional-parameters-by-symetry-with-varargs/7534 "2026-09-15T21:10:49Z")

</div>

Meta: The proposal below would benefit from more details (see #future-work), and maybe some polish. I do not have more time to dedicate to it, but still wanted to publish it given other recent proposal also aim to fix th…

---

## [Pre-SIP derives clauses for opaque types](https://contributors.scala-lang.org/t/pre-sip-derives-clauses-for-opaque-types/5924)

<div class="topic-metadata">

**Author:** [@KacperFKorban](https://contributors.scala-lang.org/u/KacperFKorban)\
**Replies:** 7\
**Last updated:** [September 7, 2026, 8:35am UTC](https://contributors.scala-lang.org/t/pre-sip-derives-clauses-for-opaque-types/5924 "2026-09-07T08:35:42Z")

</div>

Pre-SIP derives clauses for opaque types I propose two changes to the Scala language: Adding a derives clause for opaque types that will be desugared to a normal call to the derived method on the typeclass. e.g. opa…

---

## [Pre-SIP: Compile-Time Specialization](https://contributors.scala-lang.org/t/pre-sip-compile-time-specialization/7524)

<div class="topic-metadata">

**Author:** [@jmesyou](https://contributors.scala-lang.org/u/jmesyou)\
**Replies:** 3\
**Last updated:** [August 7, 2026, 5:32pm UTC](https://contributors.scala-lang.org/t/pre-sip-compile-time-specialization/7524 "2026-08-07T17:32:39Z")

</div>

Hello everyone, I’ve written a draft SIP on inline and specialized traits for compile-time specialization. This would reintroduce a desirable feature from Scala 2 that has been missing in Scala 3. Constructive feedba…

---

## [Handle strict equality as stable](https://contributors.scala-lang.org/t/handle-strict-equality-as-stable/7516)

<div class="topic-metadata">

**Author:** [@fwbrasil](https://contributors.scala-lang.org/u/fwbrasil)\
**Replies:** 7\
**Last updated:** [August 5, 2026, 3:02pm UTC](https://contributors.scala-lang.org/t/handle-strict-equality-as-stable/7516 "2026-08-05T15:02:17Z")

</div>

It came to my attention that the status of the strictEquality feature falls into a grey zone regarding its stability \[1\]\[2\]. The feature predates the current SIP process and the introduction of @experimental. It hasn’t b…

---

## [Flow typing for null checks: why not by default?](https://contributors.scala-lang.org/t/flow-typing-for-null-checks-why-not-by-default/7517)

<div class="topic-metadata">

**Author:** [@mberndt](https://contributors.scala-lang.org/u/mberndt)\
**Replies:** 0\
**Last updated:** [July 30, 2026, 4:40pm UTC](https://contributors.scala-lang.org/t/flow-typing-for-null-checks-why-not-by-default/7517 "2026-07-30T16:40:20Z")

</div>

Under -Yexplicit-nulls, Scala currently employs a form of flow typing to enable code like this def orZero(x: Int | Null): Int = if x != null then x else 0 In explicit nulls mode, the compiler determines that it’s OK …

---

## [Pre-SIP: Divergence Checking for Match Type Reduction](https://contributors.scala-lang.org/t/pre-sip-divergence-checking-for-match-type-reduction/7490)

<div class="topic-metadata">

**Author:** [@lluc](https://contributors.scala-lang.org/u/lluc)\
**Replies:** 29\
**Last updated:** [July 27, 2026, 4:05pm UTC](https://contributors.scala-lang.org/t/pre-sip-divergence-checking-for-match-type-reduction/7490 "2026-07-27T16:05:19Z")

</div>

Pre-SIP: Divergence Checking for Match Type Reduction Issue: #22587 Implementation PR: #24661 Full report & proof: Lluc24/divergence Situation Match types can diverge during reduction — either cycling through a close…

---

## [Pre-SIP Inline Refinement Captures in Match Type Patterns](https://contributors.scala-lang.org/t/pre-sip-inline-refinement-captures-in-match-type-patterns/7481)

<div class="topic-metadata">

**Author:** [@halotukozak](https://contributors.scala-lang.org/u/halotukozak)\
**Replies:** 5\
**Last updated:** [July 27, 2026, 12:10pm UTC](https://contributors.scala-lang.org/t/pre-sip-inline-refinement-captures-in-match-type-patterns/7481 "2026-07-27T12:10:02Z")

</div>

Summary This Pre-SIP proposes allowing match type case patterns to capture abstract type members of refined types, without a separate type alias. Currently: type BoxOf\[c\] = Box { type Content = c } type Unbox\[B \<: Box…

---

## [Pre-SIP: A Syntax for Collection Literals](https://contributors.scala-lang.org/t/pre-sip-a-syntax-for-collection-literals/6990)

<div class="topic-metadata">

**Author:** [@odersky](https://contributors.scala-lang.org/u/odersky)\
**Replies:** 285\
**Last updated:** [July 6, 2026, 10:55am UTC](https://contributors.scala-lang.org/t/pre-sip-a-syntax-for-collection-literals/6990 "2026-07-06T10:55:46Z")

</div>

Pre-SIP: A Syntax for Collection Literals Scala is lacking so far a concise way to specify collection literals. This makes it an outlier compared to many other popular languages. We propose to change this by introducing…

---

## [Pre-SIP: better strictEquality support in pattern matching](https://contributors.scala-lang.org/t/pre-sip-better-strictequality-support-in-pattern-matching/6781)

<div class="topic-metadata">

**Author:** [@mberndt](https://contributors.scala-lang.org/u/mberndt)\
**Replies:** 8\
**Last updated:** [June 26, 2026, 5:45pm UTC](https://contributors.scala-lang.org/t/pre-sip-better-strictequality-support-in-pattern-matching/6781 "2026-06-26T17:45:19Z")

</div>

Hey there, Happy German Unity Day (October 3rd) to everybody. I’ve written a SIP draft on how to improve pattern matching to make it more practical in code bases compiled with the strictEquality feature. I’ve worked o…

---

## [Pre-SIP Allow += inside \`copy\` method for case classes](https://contributors.scala-lang.org/t/pre-sip-allow-inside-copy-method-for-case-classes/7461)

<div class="topic-metadata">

**Author:** [@Haemol](https://contributors.scala-lang.org/u/Haemol)\
**Replies:** 7\
**Last updated:** [May 28, 2026, 8:35am UTC](https://contributors.scala-lang.org/t/pre-sip-allow-inside-copy-method-for-case-classes/7461 "2026-05-28T08:35:26Z")

</div>

Hi, I’d like to suggest small syntactic sugar. Instead of writing verboseCaseClass.copy(wellNamedField = verboseCaseClass.wellNamedField + 1) I suggest it should be fine to write verboseCaseClass.copy(wellNamedField +…

---

## [Pre-SIP: Allow fully implicit conversions in Scala 3 with \`into\`](https://contributors.scala-lang.org/t/pre-sip-allow-fully-implicit-conversions-in-scala-3-with-into/7105)

<div class="topic-metadata">

**Author:** [@odersky](https://contributors.scala-lang.org/u/odersky)\
**Replies:** 55\
**Last updated:** [May 26, 2026, 9:57am UTC](https://contributors.scala-lang.org/t/pre-sip-allow-fully-implicit-conversions-in-scala-3-with-into/7105 "2026-05-26T09:57:32Z")

</div>

Thank you all for your input. That was very helpful improving the proposal. I believe the overall appreciation tended positive so I went ahead and made a formal SIP proposal:

---

## [\`&\` and \`|\` in type patterns](https://contributors.scala-lang.org/t/and-in-type-patterns/7457)

<div class="topic-metadata">

**Author:** [@mberndt](https://contributors.scala-lang.org/u/mberndt)\
**Replies:** 6\
**Last updated:** [May 23, 2026, 1:14am UTC](https://contributors.scala-lang.org/t/and-in-type-patterns/7457 "2026-05-23T01:14:34Z")

</div>

Hi, I noticed this bug today: The bug is that when -rewrite -source 3.4-migration is used, code like case \_: Foo with Bar is rewritten to case \_: Foo & Bar which, surprisingly, doesn’t parse. It needs to be written ca…

---

## [strictEqualityPatternMatching: does it work for you?](https://contributors.scala-lang.org/t/strictequalitypatternmatching-does-it-work-for-you/7379)

<div class="topic-metadata">

**Author:** [@mberndt](https://contributors.scala-lang.org/u/mberndt)\
**Replies:** 11\
**Last updated:** [May 7, 2026, 11:14am UTC](https://contributors.scala-lang.org/t/strictequalitypatternmatching-does-it-work-for-you/7379 "2026-05-07T11:14:30Z")

</div>

Hey, the strictEqualityPatternMatching feature was recently released in Scala 3.8 As the author of this feature, I would now like to collect some feedback about it in order to ascertain whether it succeeded in its go…

---

## [Pre-SIP: if-else Guards in For-Comprehensions with Custom Error Values](https://contributors.scala-lang.org/t/pre-sip-if-else-guards-in-for-comprehensions-with-custom-error-values/7434)

<div class="topic-metadata">

**Author:** [@torbenfreise](https://contributors.scala-lang.org/u/torbenfreise)\
**Replies:** 17\
**Last updated:** [April 27, 2026, 7:50am UTC](https://contributors.scala-lang.org/t/pre-sip-if-else-guards-in-for-comprehensions-with-custom-error-values/7434 "2026-04-27T07:50:40Z")

</div>

Motivation Either - if guards are unsupported In for comprehensions over Either, there is no idiomatic way to short-circuit the expression to a Left if a predicate does not hold. The current way to do this in stdlib look…

---

## [Named-tuple/case class destructuring shorthand](https://contributors.scala-lang.org/t/named-tuple-case-class-destructuring-shorthand/7430)

<div class="topic-metadata">

**Author:** [@anqit](https://contributors.scala-lang.org/u/anqit)\
**Replies:** 19\
**Last updated:** [April 14, 2026, 6:04pm UTC](https://contributors.scala-lang.org/t/named-tuple-case-class-destructuring-shorthand/7430 "2026-04-14T18:04:58Z")

</div>

Currently when destructuring case class using named parameters, we have to specify both the parameter name, as well as what we’d like to call the extracted value: case class User(firstName: String, lastName: String) val…

---

## [Pre-SIP: Named-Tuple, Case Class Destructuring, and Application Shorthand](https://contributors.scala-lang.org/t/pre-sip-named-tuple-case-class-destructuring-and-application-shorthand/7438)

<div class="topic-metadata">

**Author:** [@anqit](https://contributors.scala-lang.org/u/anqit)\
**Replies:** 0\
**Last updated:** [April 14, 2026, 6:04pm UTC](https://contributors.scala-lang.org/t/pre-sip-named-tuple-case-class-destructuring-and-application-shorthand/7438 "2026-04-14T18:04:36Z")

</div>

See original discussion. Currently, when destructuring a case class or named tuple using named parameters, Scala requires developers to specify both the parameter name and the name of the variable they wish to extract t…

---

## [Pre-SIP: relaxed \`strictEquality\` for \`==\` and \`!=\`](https://contributors.scala-lang.org/t/pre-sip-relaxed-strictequality-for-and/7356)

<div class="topic-metadata">

**Author:** [@dontgitit](https://contributors.scala-lang.org/u/dontgitit)\
**Replies:** 9\
**Last updated:** [February 2, 2026, 1:42am UTC](https://contributors.scala-lang.org/t/pre-sip-relaxed-strictequality-for-and/7356 "2026-02-02T01:42:59Z")

</div>

Recently, SIP-67 was implemented and released in Scala 3.8. I think it does a fantastic job of what it set out to do: This proposal aims to make the strictEquality feature easier to adopt by making pattern matching aga…

---

## [Pre-SIP: @AllowDiscard annotation to suppress -Wvalue-discard on classes and methods](https://contributors.scala-lang.org/t/pre-sip-allowdiscard-annotation-to-suppress-wvalue-discard-on-classes-and-methods/7370)

<div class="topic-metadata">

**Author:** [@scalafan](https://contributors.scala-lang.org/u/scalafan)\
**Replies:** 1\
**Last updated:** [January 31, 2026, 9:07pm UTC](https://contributors.scala-lang.org/t/pre-sip-allowdiscard-annotation-to-suppress-wvalue-discard-on-classes-and-methods/7370 "2026-01-31T21:07:55Z")

</div>

I want to propose a way to suppress -Wvalue-discard and -Wnounit-statement at the definition site. Best name for the annotation I came up with is @AllowDiscard, but in Java land the more common naming is way more verbose…

---

## [Pre-SIP: Tagged enum's variant inference](https://contributors.scala-lang.org/t/pre-sip-tagged-enums-variant-inference/7368)

<div class="topic-metadata">

**Author:** [@matheusds4](https://contributors.scala-lang.org/u/matheusds4)\
**Replies:** 3\
**Last updated:** [January 30, 2026, 9:33pm UTC](https://contributors.scala-lang.org/t/pre-sip-tagged-enums-variant-inference/7368 "2026-01-30T21:33:53Z")

</div>

Scala doesn’t allow the following: enum E: case VAR\_A case VAR\_B val e: E = VAR\_A This is only allowed if you import E.\_. My proposal is roughly: enum E: case VAR\_A case VAR\_B val e: E = "var\_a" What happe…

---

## [Pre-SIP Improvements for default parameters](https://contributors.scala-lang.org/t/pre-sip-improvements-for-default-parameters/7367)

<div class="topic-metadata">

**Author:** [@GoogeTan](https://contributors.scala-lang.org/u/GoogeTan)\
**Replies:** 3\
**Last updated:** [January 30, 2026, 3:54pm UTC](https://contributors.scala-lang.org/t/pre-sip-improvements-for-default-parameters/7367 "2026-01-30T15:54:39Z")

</div>

Summary Currently, Context Bounds cannot be referenced inside the default values of parameters in the same method: // No given instance of type Monad\[F\] was found for parameter def foo\[F\[\_\] : Monad\](something : F\[Int\] =…

---

## [Pre-SIP: Easier pattern dispatch](https://contributors.scala-lang.org/t/pre-sip-easier-pattern-dispatch/7360)

<div class="topic-metadata">

**Author:** [@Sporarum](https://contributors.scala-lang.org/u/Sporarum)\
**Replies:** 10\
**Last updated:** [January 29, 2026, 9:59am UTC](https://contributors.scala-lang.org/t/pre-sip-easier-pattern-dispatch/7360 "2026-01-29T09:59:24Z")

</div>

This is a pattern I have seen time and time again: Enum Tree: case LeafA(x: Int) case LeafB(x: String) case NodeC(x: Tree) case NodeD(l: Tree, r: Tree) def handle(t: Tree, value: SomeType) = t match case t: L…

---

## [Pre-SIP: Usable quotes API in std lib](https://contributors.scala-lang.org/t/pre-sip-usable-quotes-api-in-std-lib/7146)

<div class="topic-metadata">

**Author:** [@Kalin-Rudnicki](https://contributors.scala-lang.org/u/Kalin-Rudnicki)\
**Replies:** 18\
**Last updated:** [January 9, 2026, 9:36am UTC](https://contributors.scala-lang.org/t/pre-sip-usable-quotes-api-in-std-lib/7146 "2026-01-09T09:36:17Z")

</div>

Motivation After much effort, as a user of the scala language, it seems apparent that the manner in which the quotes API is defined offers an unfortunately low level of usability. This is caused by several factors. Th…

---

## [In-source evaluation of expressions (and in-source unit tests)](https://contributors.scala-lang.org/t/in-source-evaluation-of-expressions-and-in-source-unit-tests/7320)

<div class="topic-metadata">

**Author:** [@mfcold](https://contributors.scala-lang.org/u/mfcold)\
**Replies:** 22\
**Last updated:** [December 31, 2025, 9:35am UTC](https://contributors.scala-lang.org/t/in-source-evaluation-of-expressions-and-in-source-unit-tests/7320 "2025-12-31T09:35:50Z")

</div>

Lean4 has a feature that is awesome for teaching, learning, and incremental programming: real-time evaluation of source code expressions in the editor, without the need to compile or run code manually. This is done by w…

---

## [Pre-SIP: Bind variables for alternative patterns](https://contributors.scala-lang.org/t/pre-sip-bind-variables-for-alternative-patterns/6321)

<div class="topic-metadata">

**Author:** [@yilinwei](https://contributors.scala-lang.org/u/yilinwei)\
**Replies:** 14\
**Last updated:** [December 29, 2025, 4:58pm UTC](https://contributors.scala-lang.org/t/pre-sip-bind-variables-for-alternative-patterns/6321 "2025-12-29T16:58:26Z")

</div>

Please see the link here. cc @LPTK specifically since you’ve attempted this before and may have some insights on the implementation or problems.

---

## [Using in modularity](https://contributors.scala-lang.org/t/using-in-modularity/7327)

<div class="topic-metadata">

**Author:** [@halotukozak](https://contributors.scala-lang.org/u/halotukozak)\
**Replies:** 2\
**Last updated:** [December 29, 2025, 4:13pm UTC](https://contributors.scala-lang.org/t/using-in-modularity/7327 "2025-12-29T16:13:47Z")

</div>

How to rewrite context parameters to the new modularity syntax? //some type class trait TC\[X\]: def doSth(sth: X): X given \[T\]: TC\[List\[T\]\] with def doSth(sth: List\[T\]): List\[T\] = sth //can be rewritten to: give…

---

## [Inconsistency in self-based type classes](https://contributors.scala-lang.org/t/inconsistency-in-self-based-type-classes/7328)

<div class="topic-metadata">

**Author:** [@halotukozak](https://contributors.scala-lang.org/u/halotukozak)\
**Replies:** 1\
**Last updated:** [December 29, 2025, 3:48pm UTC](https://contributors.scala-lang.org/t/inconsistency-in-self-based-type-classes/7328 "2025-12-29T15:48:35Z")

</div>

While I was experimenting with self-based type classes, I found an inconsistency. Givens cannot be written in “the shortest form”. The code will be more verbose trait A\[T\]: extension(t: T) def foo: T trait B: type …

[Next page](https://contributors.scala-lang.org/c/sip/13.md?page=1)
