Comment

Comment by gnulinux

I would still prefer having a multiline lambda. We have this:

    def f(x):
      y = foo(x)
      z = bar(y)
      // ...
      return x
    some_obj.do_later(t, f, a, b, c)
I would prefer:

    some_obj.do_later(t, lambda x: {
      y = foo(x)
      z = bar(y)
      // ...
      return x
    }, a, b, c)
Maybe ( instead of {? I'm not sure that's possible to parse. Regardless, something like this would be good.
parent gnulinux 6 years ago

Discussion

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton