• @[email protected]
        link
        fedilink
        58 days ago

        I mean, there is a lot wrong with it, but every language has its quirks. Generally I like discussing it’s actual flaws cause it helps me better understand the language.

    • Natanox
      link
      fedilink
      English
      6
      edit-2
      8 days ago

      And switch cases (called match cases) are there as well.

      I use lambdas all the time to shovel GTK signal emitions from worker threads into GLib.idle_add in a single line, works as you’d expect.

      Previous commenters probably didn’t look at Python in a really long time.

    • @[email protected]
      link
      fedilink
      48 days ago

      a lambdo which can only contain one expression, and not even a statement is pretty much useless. For anything nontrivial you have to write a separate function and have the lambda be just a function call expression. Which completely defeats the point