Elektrine lite

← Feed

@vascorsd@mastodon.social

Post #1652043

2026-04-06 18:16 UTC

At least if this should be a better choice than "throw IllegalStateException("potato should not be possible") we should be able to put a custom message in it.

Replies (1)

  • @ppurang@mastodon.social 2026-04-07 09:47

    @vascorsd The way I solved it till now for cases that aren't reachable was to introduce a `!!!` that was a good old AssertionError.. along the lines of `???`. Bit of a contrived example but something like this: https://scastie.scala-lang.org/cTlwfWYDS4Wo0LWcu0gkpQ oops new link

    Open ##1652044