News for hackers. Stuff that matters.
Re:Ask HN: What made you change your mind about a programmin... by ryl00 on Sunday March 03, 2019 @11:19PM (#19298746)
But doesn't the whitespace issue gimp Python's lambda syntax? AFAIK you're limited to one expression or function call, to get around the fact that you can't just inline a completely new function (with its associated control flow structure).

And what about one-liners, a la Perl? Stack Overflow answers seem to imply either embedding newlines in your string, or using semi-colons (as a Python newbie... you can use semi-colons?!)

Re:Ask HN: What made you change your mind about a programmin... by cauthon on Monday March 04, 2019 @01:13AM (#19299176)
> AFAIK you're limited to one expression or function call, to get around the fact that you can't just inline a completely new function (with its associated control flow structure)

On the other hand, if your function needs a flow structure that's more complicated than a single line, should you really be inlining it?

And I think any such use case that you really want to inline can probably be accomplished with list comprehensions