Elektrine lite

← Feed

@Quetzalcutlass@lemmy.world

2026-10-25 06:07 UTC

Want to know something horrendous? Odin, my current favorite language, recommends mixing tabs and spaces in their style guide. What’s worse, their justification actually makes sense.

Replies (5)

  • @Archr@lemmy.world 2026-10-25 06:26

    Fuck… They are right. This makes a lot of sense. Now I have to share this with everyone at work.

    Open ##5235476

  • @LeapSecond@lemmy.zip 2026-10-25 07:31

    Another unpopular opinion: this alignment style looks terrible and wastes space. If you want alignment just start the parameters in a new line.

    Open ##5236031

  • @MarauderIIC@lemmy.zip 2026-10-25 08:22

    Does that rule have autoformatting support? If not it’s a time waster anytime the parameters get refactored. I’m firmly in the camp of “machines do my formatting”

    Open ##5236579

  • @Orygin@sh.itjust.works 2026-10-25 19:24

    That’s how it’s always supposed to be. Tabs for indent, spaces for alignment. Languages that do not support this are trash

    Open ##5243596

  • @GroundedGator@lemmy.world 2026-10-26 00:19

    I used to do this and it absolutely makes sense. However, I’ve shifted to tabs only and have removed the need for alignment with newlines.

    Open ##5246718