3 ms·
Do you plan to accommodate multi-line lambda? Python is hamstrung on this front thanks to the white-space oriented formatting.
by Empact 8y ago
Do you plan to accommodate multi-line lambda? Python is hamstrung on this front thanks to the white-space oriented formatting.
- dragonwriter 8y ago> Python is hamstrung on this front thanks to the white-space oriented formatting. You could have multiline lambdas with Python's signficant whitespace, the then-BDFL just didn't think it was important enough to accept any of the syntax options proposed for it or to bother finding another option, believing named functions were sufficient for the multiline case.
- nikofeyn 8y agof# has white-space oriented formatting.
- iaabtpbtpnn 8y agoOCaml doesn't care about white space, and I don't think SML does either, although F# does. Maybe you are thinking of Haskell?
- nikofeyn 8y agoi am sorry. you are right. i misremembered about sml (haven't written in it much and in a while) and incorrectly lumped in ocaml. i should have been more careful. f# was what was really on my mind.
- Aardappel 8y agoIt already does multi-line lambdas (lambdas and built-in control structures share the same syntax), see e.g. the call to "fold" here: https://htmlpreview.github.io/?https://raw.githubusercontent.com/aardappel/lobster/master/lobster/docs/C_style%20language%20Cheat%20Sheet%20for%20Lobster.html https://htmlpreview.github.io/?https://raw.githubusercontent...