Discuss Online
  • Communities
  • Create Post
  • Create Community
  • heart
    Support Lemmy
  • search
    Search
  • Login
  • Sign Up
u_tamtam@programming.devM to Scala@programming.dev · 2 years ago

In Scala 3, Use 4 Spaces for Indentation

alexn.org

external-link
message-square
1
link
fedilink
2
external-link

In Scala 3, Use 4 Spaces for Indentation

alexn.org

u_tamtam@programming.devM to Scala@programming.dev · 2 years ago
message-square
1
link
fedilink
In Scala 3, use 4 Spaces for Indentation
alexn.org
external-link
Scala’s coding style advised to use 2 spaces of indentation, but that was before Scala 3’s optional braces, which introduces significant indentation. It’s time for an upgrade of the coding style.
alert-triangle
You must log in or # to comment.
  • snowe@programming.devM
    link
    fedilink
    arrow-up
    1
    ·
    2 years ago

    why in the world would any major language choose significant indentation in this day and age?

Scala@programming.dev

scala@programming.dev

Subscribe from Remote Instance

Create a post
You are not logged in. However you can subscribe from another Fediverse account, for example Lemmy or Mastodon. To do this, paste the following into the search field of your instance: !scala@programming.dev
Visibility: Public
globe

This community can be federated to other instances and be posted/commented in by their users.

  • 1 user / day
  • 1 user / week
  • 7 users / month
  • 20 users / 6 months
  • 2 local subscribers
  • 410 subscribers
  • 48 Posts
  • 46 Comments
  • Modlog
  • mods:
  • snowe@programming.dev
  • u_tamtam@programming.dev
  • alexelcu@programming.dev
  • BE: 0.19.14
  • Modlog
  • Legal
  • Instances
  • Docs
  • Code
  • join-lemmy.org