Login
You're viewing the y.diskcat.com public feed.
  • Nov 11, 2026, 9:59 AM

    Taking a look at #scala 3 for the first time in years. Seems like the dust has settled now. Wondering if significant whitespace has become the default now. Most examples in the reference seem to be using it.

    💬 1🔄 0⭐ 0

Replies

  • Nov 11, 2026, 1:10 PM

    @raichoo Personally, I find working with braces a lot easier. There is a clear boundary I can parse. Nowadays, I'm searching for compile issues just to recognize, the reason is some wrong-indented line and the compiler ignored the closing brace. WTF.

    There is a reason some users prefer tabs, e.g. if they struggle with too less significant space, therefore tabs vs spaces must be a user decision.

    It's likewise with braces vs indentation. If it excludes a user group it's wrong.

    💬 0🔄 0⭐ 0
  • Nov 11, 2026, 2:54 PM

    @TobiasRoeser I'm used to writing Haskell without braces, so I probably wouldn't have an issue doing the same with Scala 3. Just needs to be somewhat consistent when working with others. Otherwise things are going to become a mess in terms of readability. Or even worse, people "adjusting" other people's code to fit their own preference.

    💬 0🔄 0⭐ 0