News for hackers. Stuff that matters.
Re:Go + Services = One Goliath Project by whalesalad on Saturday December 21, 2019 @08:32PM (#21854527)
> Regular functions definitions can't be used as expressions

I’m having a difficult time understanding what you mean here. Can you offer an example?

I have never felt compelled to write a multi line lambda.

Re:Go + Services = One Goliath Project by dwaltrip on Saturday December 21, 2019 @08:53PM (#21854618)
Python can't replicate the structure of this JavaScript code:

  fooBaz(x => {
    // multiple lines of logic
  })
In python, you are forced to move the logic away from the point of usage, which means you lose some locality. This loss is sometimes not worth getting a "name" for the logic.

Of course, sometimes it is better to create a named function away from the point of usage, but I don't think that is always the case.