Re: Self invoked anonymous functions with no outer scoped ???

2017-12-08 Thread Brandon Allbery
That might prove difficult considering how much of the language is *defined* in outer scopes. (Including, er, the basic grammar.) On Fri, Dec 8, 2017 at 3:25 PM, Andy Bach wrote: > I ran into this article > https://medium.com/@kasperpeulen/an-interesting- > programming-feature-that-no-language-h

Re: Self invoked anonymous functions with no outer scoped ???

2017-12-08 Thread Brad Gilbert
Let's say this keyword throws away everything in the lexical scope, except for what you declare sub compute-G (\a, \b, \c) { my \d = only-use ( a, b, &infix:<+>, &infix:<*>, &infix:<**> ) { a + b * 2 ** 3 } … return g; } I think that would get old real qui

Self invoked anonymous functions with no outer scoped ???

2017-12-08 Thread Andy Bach
I ran into this article https://medium.com/@kasperpeulen/an-interesting-programming-feature-that-no-language-has-except-php-4de22f9e3964 The feature allows [you] to write *self invoked anonymous functions that don’t let any scope from the outer function leak in*. The syntax he proposes involves th

[perl #132549] Can't put() any(): This type cannot unbox to a native string

2017-12-08 Thread Zoffix Znet via RT
On Fri, 08 Dec 2017 08:28:32 -0800, comdog wrote: > This comes from an answer to a Perl 6 question on Stackoverflow that > showed a different bug: > > https://stackoverflow.com/q/45527881/2766176 > > With put() it does not and gives a strange error: I guess jnthn++ gets a score point for pre

[perl #132549] Can't put() any(): This type cannot unbox to a native string

2017-12-08 Thread Zoffix Znet via RT
On Fri, 08 Dec 2017 08:28:32 -0800, comdog wrote: > This comes from an answer to a Perl 6 question on Stackoverflow that > showed a different bug: > > https://stackoverflow.com/q/45527881/2766176 > > With put() it does not and gives a strange error: I guess jnthn++ gets a score point for pre

[perl #132549] Can't put() any(): This type cannot unbox to a native string

2017-12-08 Thread brian d foy
# New Ticket Created by "brian d foy" # Please include the string: [perl #132549] # in the subject line of all future correspondence about this issue. # https://rt.perl.org/Ticket/Display.html?id=132549 > This comes from an answer to a Perl 6 question on Stackoverflow that showed a different