• db2@lemmy.world
    link
    fedilink
    arrow-up
    5
    arrow-down
    11
    ·
    9 hours ago

    Were you trying to post examples of it being easy or do you actually find those hard?

    • esa@discuss.tchncs.de
      link
      fedilink
      arrow-up
      5
      ·
      6 hours ago

      I find the C type syntax turgid. It’s fine for the most basic types, but the name-in-the-middle style doesn’t scale at all, and it’s not hard to understand why later languages separate name and type, no matter which side of the name the type goes on.

      I find Rust easier to read in that regard, even though picking <> for generics was likely done to be familiar for C++/Java types rather than easy to parse. (See also: the bastion of the turbofish)