• 0 Posts
  • 59 Comments
Joined 2 years ago
cake
Cake day: July 1st, 2023

help-circle

  • vrighter@discuss.tchncs.detoProgrammer Humor@lemmy.mlThe meaning of `this`
    link
    fedilink
    arrow-up
    9
    arrow-down
    1
    ·
    edit-2
    19 hours ago

    I don’t read spoken language, but I do read written ones. The problem with python’s ternary is that it puts the condition in the middle, which means you have to visually parse the whole true:expression just to see where the condition starts. Which makes it hard to read for anything but the most trivial examples.

    The same goes for comprehensions and generators