• xmunk@sh.itjust.works
    link
    fedilink
    arrow-up
    3
    ·
    3 days ago

    Wait does python not have built in functional list comprehension? Even PHP has that built in at this point.

    • Phrodo_00@lemmy.world
      link
      fedilink
      arrow-up
      10
      ·
      edit-2
      3 days ago

      Python is probably the language that popularized them, if not invented them. They’re saying the team doesn’t like using them.

      My take is that other than C++, where it’s reasonable, forbidden language features are a smell for the team not having a healthy understanding of the language

      • azimir@lemmy.ml
        link
        fedilink
        arrow-up
        3
        ·
        3 days ago

        As per all too often, the functional programming world invented them. Haskell (and its ilk) usually has all the future cool stuff already. Then python picks it up, then it moves over to C#/Java, then C++ says “mee too”!