News for hackers. Stuff that matters.
Re:Go + Services = One Goliath Project by ptx on Saturday December 21, 2019 @07:31PM (#21854269)
Where's the boilerplate? "def b():" and "() => {}" are both 8 characters.

It is annoying that you have to give the function a name, though.

Re:Go + Services = One Goliath Project by aserafini on Saturday December 21, 2019 @07:55PM (#21854382)
On the one hand it’s annoying, on the other it enforces a discipline of thought in the same way that having to name variables does.
Re:Go + Services = One Goliath Project by baddox on Saturday December 21, 2019 @08:16PM (#21854458)
That’s an interesting principle, something like “a block of code that is complex enough to be written across multiple lines of code ought to be given a name,” but standard idiomatic Python already violates that principle by featuring multiple lines in the body of a for loop. The fact that the body of a for loop can be multiple lines but the “body” of a lambda cannot is an arbitrary syntax inconsistency.
Re:Go + Services = One Goliath Project by jcheng on Saturday December 21, 2019 @07:57PM (#21854389)

    def b(x):
      return x + 1
vs

    x => x + 1