Elektrine lite

← Feed

@Nalivai@lemmy.world

Post #3890670

2026-07-17 17:30 UTC

The first picture isn’t what people write, even though it’s technically compilable, it’s not what C is. The second is a normal syntax, pretty simple to understand if you write enough code. C is very simple language at it’s core, and it allows for it to be used in a very complicated systems.

Replies (1)

  • @iopq@lemmy.world 2026-07-20 18:10

    Nobody is arguing C is complex. The argument is that it’s not the optimal syntax. For example, case statements needing breaks can cause logical issues with incorrect merges. How about this en.wikipedia.org/wiki/Unreachable_code#goto_fail_… The if statement not requiring brackets caused this bug. Rust fixes these issues with pattern matching and mandatory curly braces in if body statements

    Open ##3966196