bython icon indicating copy to clipboard operation
bython copied to clipboard

Multiline lambdas?

Open lukefisklennon opened this issue 6 years ago • 6 comments

Hi there!

One of my main gripes about Python is not being able to write multiline lambdas. I had an idea to create a Python preprocessor that allows braces (and found this before making it myself) to allow multiline lambdas, but also to generally improve readability.

I'm just wondering if Bython supports multiline lambdas, or plans to in the future.

Thanks so much!

lukefisklennon avatar Nov 16 '18 07:11 lukefisklennon

I second this. I think we are really talking about anonymous functions, which is a big limitation of python.

abalter avatar Dec 20 '18 04:12 abalter

@abalter Thanks for the clarification, that's what I meant.

lukefisklennon avatar Dec 20 '18 05:12 lukefisklennon

so true @lukefisklennon

abiramen avatar Mar 10 '23 13:03 abiramen

I agree!

evan-a-w avatar Apr 16 '23 06:04 evan-a-w

  1. multiline lambdas ❤️
  2. maybe, one day, a slightly less complicated parser in the language internals? 🤷

The only reasonable arguments for this project to exist.

thehappycheese avatar Mar 16 '24 04:03 thehappycheese