Travis Griggs wrote:
> I do not like the python lambda. For two reasons.
>
> One: In a language that sought to be approachable by simple people (i.e.
> non computer science graduates who would use it in addition to their
> scientific/education background), I can’t believe they threw in a 6
> char
Dan Stromberg :
> Please don't add multiline lambdas to Python.
Agree.
> Multiline lambdas give rise (in a big way) to the
> computer-language-equivalent of run-on sentences.
Lambdas are perfect in Scheme because they are idiomatic in it. They
carry a visual meaning and flow nicely with the par
On Thu, Aug 21, 2014 at 12:55 AM, wrote:
> Hi, just wanting to do a shot in the dark,but maybe this syntax is Pythonic
> (in a "we-are-all-grown-ups" fashion, ahem)enough to get its way into the
> language
> this is what yours truly thinks: don't we all know that ":" means the next
> token mus
On Thu, Aug 21, 2014 at 12:55 AM, wrote:
> Hi, just wanting to do a shot in the dark,but maybe this syntax is Pythonic
> (in a "we-are-all-grown-ups" fashion, ahem)enough to get its way into the
> language
> this is what yours truly thinks: don't we all know that ":" means the next
> token mus
On Aug 21, 2014, at 12:55 AM, icefap...@gmail.com wrote:
> Hi, just wanting to do a shot in the dark,but maybe this syntax is Pythonic
> (in a "we-are-all-grown-ups" fashion, ahem)enough to get its way into the
> language
> this is what yours truly thinks: don't we all know that ":" means the n
On 21/08/2014 7:30 PM, icefap...@gmail.com wrote:
On Thursday, August 21, 2014 2:27:08 AM UTC-7, Marko Rauhamaa wrote:
In practice, your proposal would not make life easier for Python
programmers.
neither did the lambda, yours truly supposes?
alex23 disagrees. alex23 finds the lambda extreme
On 8/21/2014 5:14 AM, icefap...@gmail.com wrote:
it is simply a matter of convenience:
def a():
print( "gvr" )
func(a);
or
func( def():
print("gvr")
)
it would be great if others could further share their opinions
I have, multiple time in previous threads. A bad idea. Unnecessary.
On Thursday, August 21, 2014 2:27:08 AM UTC-7, Marko Rauhamaa wrote:
> In practice, your proposal would not make life easier for Python
>
> programmers.
>
>
>
>
>
> Marko
neither did the lambda, yours truly supposes?
--
https://mail.python.org/mailman/listinfo/python-list
> tag_handler = {
>
> "span": lambda content: content,
>
> "div": lambda content: "\n"+content+"\n",
>
> "p": lambda content: "\n"+content+"\n",
>
> "br": lambda content: "\n",
>
> }
>
>
>
> If you wanted to expand one of those to have statements in it, you'd
>
> have to t
icefap...@gmail.com:
> it is simply a matter of convenience:
>
> def a():
> print( "gvr" )
> func(a);
>
> or
>
> func( def():
>print("gvr")
> )
>
> it would be great if others could further share their opinions
In practice, your proposal would not make life easier for Python
programmers.
it is simply a matter of convenience:
def a():
print( "gvr" )
func(a);
or
func( def():
print("gvr")
)
it would be great if others could further share their opinions
--
https://mail.python.org/mailman/listinfo/python-list
reasonable, but I don't like the close parens on the same line; even
>
> if this syntax is allowed, I'd frown on it in style guides,
>
thanks, bu what exactly do you find unlikeable in this syntax? the ")" is no
new syntax, but simply a match for a previous "("; and you can put it anywhere
b
On Thu, Aug 21, 2014 at 6:59 PM, wrote:
> thanks, bu what exactly do you find unlikeable in this syntax? the ")" is no
> new syntax, but simply a match for a previous "("; and you can put it
> anywhere because the "(" contents are space-insensitive:
>
> this would be a syntax error:
> a = def()
> reasonable, but I don't like the close parens on the same line; even
>
> if this syntax is allowed, I'd frown on it in style guides,
>
thanks, bu what exactly do you find unlikeable in this syntax? the ")" is no
new syntax, but simply a match for a previous "("; and you can put it anywhere
Ah, here we go again! It's multi-line lambda season. Comes around as
regularly as duck-typing season, rabbit seasoning, baseball season,
and other Looney Tunes references. :)
On Thu, Aug 21, 2014 at 5:55 PM, wrote:
> doFunc(def():
>print( "anon" )
>return "gvr")
What I'm seeing here is
Hi, just wanting to do a shot in the dark,but maybe this syntax is Pythonic (in
a "we-are-all-grown-ups" fashion, ahem)enough to get its way into the language
this is what yours truly thinks: don't we all know that ":" means the next
token must be an indent (mostly)? and doesn't the "(" and its a
16 matches
Mail list logo