also I just realized that Brazil did NOT make a programming language entirely in Spanish and call it “Si” and that my professor was making a joke about C… god damn it

this post is probably too nieche but I feel like Lemmy is nerdy enough that enough people will get it lol

  • Kacarott@aussie.zone
    link
    fedilink
    arrow-up
    24
    ·
    16 hours ago

    I genuinely do not understand the problem with white spaces that people seem to have. Literally any well formatted code will use whitespace for indentation.

    I imagine that if python syntax was the norm and then a C-style syntax language appeared, the same group of people would be complaining “curly brackets? Who thought that was a good idea?”

    • squaresinger@lemmy.world
      link
      fedilink
      arrow-up
      2
      ·
      4 hours ago

      The first language I learned had a if-endif-style syntax. Curly braces SUCK compared to that.

      The only downside that whitespaces have is that they often get lost when copy-pasting them.

      It’s virtually impossible to share a small python snippets over some messengers. Other than that I prefer whitespaces over curly braces.

    • Pup Biru@aussie.zone
      link
      fedilink
      English
      arrow-up
      6
      ·
      13 hours ago

      right? like if white space weren’t required, how would you format your code differently? arbitrary white space all over the place? no indentation? that is some spicy garbage code