[perl #131781] :?smth should construct a truthy pair (say (:?foo))

2017-07-25 Thread Zoffix Znet via RT
Based on the tally of the opinions, I'm rejecting this ticket: AlexDaniel: +1 Zoffix: -1 Jonathan Scott Duff: -1 Coke: -1 > Sorry for being think but what is say (:?foo); meant to do? The OP just says > it should "work". I think that's pretty good evidence the extra syntax

[perl #131781] :?smth should construct a truthy pair (say (:?foo))

2017-07-25 Thread Zoffix Znet via RT
Based on the tally of the opinions, I'm rejecting this ticket: AlexDaniel: +1 Zoffix: -1 Jonathan Scott Duff: -1 Coke: -1 > Sorry for being think but what is say (:?foo); meant to do? The OP just says > it should "work". I think that's pretty good evidence the extra syntax

Re: [perl #131781] :?smth should construct a truthy pair (say (:?foo))

2017-07-24 Thread Jonathan Scott Duff via RT
The OP said :?foo should work because :foo and :!foo work. I don't follow the logic. How are those things related? Why should :foo and :!foo imply :?foo? (In my head it makes as much sense as ":foo and :!foo implies :*foo", which is to say, none.) I don't see any benefit to adding a :?foo

[perl #131781] :?smth should construct a truthy pair (say (:?foo))

2017-07-24 Thread Will Coleda via RT
On Sat, 22 Jul 2017 09:12:31 -0700, c...@zoffix.com wrote: > On Sat, 22 Jul 2017 07:53:26 -0700, alex.jakime...@gmail.com wrote: > > This should work: > > > > Code: > > say (:?foo); > > > > Result: > > ===SORRY!=== Error while compiling -e > > Bogus statement > > at -e:1 > > --> say (:⏏?foo);

[perl #131781] :?smth should construct a truthy pair (say (:?foo))

2017-07-24 Thread Will Coleda via RT
On Sat, 22 Jul 2017 09:12:31 -0700, c...@zoffix.com wrote: > On Sat, 22 Jul 2017 07:53:26 -0700, alex.jakime...@gmail.com wrote: > > This should work: > > > > Code: > > say (:?foo); > > > > Result: > > ===SORRY!=== Error while compiling -e > > Bogus statement > > at -e:1 > > --> say (:⏏?foo);

[perl #131781] :?smth should construct a truthy pair (say (:?foo))

2017-07-23 Thread Aleks-Daniel Jakimenko-Aleksejev via RT
Another interesting thing is that if this is implemented, then it will make it possible to use ? in other places where is used. For example, it will allow %h:?exists . It seems that it will also affect character classes (e.g. <:?Ll>). Some of these totally make sense, some not so much. But we

[perl #131781] :?smth should construct a truthy pair (say (:?foo))

2017-07-23 Thread Aleks-Daniel Jakimenko-Aleksejev via RT
For those who don't agree that there is a connection between ? and !… Actually, there are some other places where ?↔! connection is implied. In fact, I will probably never list all of them. In regexes: * always succeeds, always fails (and no question implied) * tests for truthy and falsey

[perl #131781] :?smth should construct a truthy pair (say (:?foo))

2017-07-22 Thread Aleks-Daniel Jakimenko-Aleksejev via RT
“? doesn't imply truth it implies a question” This is an interesting point actually. pmurias++ expressed the same idea. I find it hard to understand this fully, but I guess I'll have to accept that there are different ways to think about it :) For example: “The ? prefix asks an expression

[perl #131781] :?smth should construct a truthy pair (say (:?foo))

2017-07-22 Thread Aleks-Daniel Jakimenko-Aleksejev via RT
For those reading this on RT, here's the previous comment in a readable way: I wouldn't be so eager to judge the proposal based on the original post. Sometimes I submit tickets fast, and sometimes ideas are not conveyed as clearly as I assumed. “How are those things related?” These were the

[perl #131781] :?smth should construct a truthy pair (say (:?foo))

2017-07-22 Thread Aleks-Daniel Jakimenko-Aleksejev via RT
I wouldn't be so eager to judge the proposal based on the original post. Sometimes I submit tickets fast, and sometimes ideas are not conveyed as clearly as I assumed. “How are those things related?” These were the examples of the pair syntax (what works and what doesn't). Now, ?↔! pattern is

Re: [perl #131781] :?smth should construct a truthy pair (say (:?foo))

2017-07-22 Thread Jonathan Scott Duff
The OP said :?foo should work because :foo and :!foo work. I don't follow the logic. How are those things related? Why should :foo and :!foo imply :?foo? (In my head it makes as much sense as ":foo and :!foo implies :*foo", which is to say, none.) I don't see any benefit to adding a :?foo

Re: [perl #131781] :?smth should construct a truthy pair (say (:?foo))

2017-07-22 Thread Lloyd Fournier
2¢: ? doesn't imply truth it implies a question. The ? prefix asks an expression whether it's True or False. When used as a sigil like $?FILE it's asking the compiler about something. ‘:foo’ sets foo to True. ‘:!foo’ sets it to False. ‘:?foo’ looks like it's trying to ask something a question,

[perl #131781] :?smth should construct a truthy pair (say (:?foo))

2017-07-22 Thread Aleks-Daniel Jakimenko-Aleksejev via RT
Yes, I should have been more clear. Basically, it should work like (:foo) does, which is construct foo => True pair. On 2017-07-22 19:25:19, lloyd.fo...@gmail.com wrote: > Sorry for being think but what is > say (:?foo); > meant to do? The OP just says it should "work". > > On Sun, Jul 23, 2017

Re: [perl #131781] :?smth should construct a truthy pair (say (:?foo))

2017-07-22 Thread Lloyd Fournier
Sorry for being think but what is say (:?foo); meant to do? The OP just says it should "work". On Sun, Jul 23, 2017 at 6:05 AM Aleks-Daniel Jakimenko-Aleksejev via RT < perl6-bugs-follo...@perl.org> wrote: > sub foo($bar!) { say $bar }; foo(42) > > On 2017-07-22 11:19:41,

Re: [perl #131781] :?smth should construct a truthy pair (say (:?foo))

2017-07-22 Thread Lloyd Fournier via RT
Sorry for being think but what is say (:?foo); meant to do? The OP just says it should "work". On Sun, Jul 23, 2017 at 6:05 AM Aleks-Daniel Jakimenko-Aleksejev via RT < perl6-bugs-follo...@perl.org> wrote: > sub foo($bar!) { say $bar }; foo(42) > > On 2017-07-22 11:19:41,

[perl #131781] :?smth should construct a truthy pair (say (:?foo))

2017-07-22 Thread Aleks-Daniel Jakimenko-Aleksejev via RT
sub foo($bar!) { say $bar }; foo(42) On 2017-07-22 11:19:41, alex.jakime...@gmail.com wrote: > Eh. The effort required to implement the feature is much less than > having > discussions *like this*. I'll try to be quick. > > “there's large possibility of introducing some unwanted ambiguity >

[perl #131781] :?smth should construct a truthy pair (say (:?foo))

2017-07-22 Thread Aleks-Daniel Jakimenko-Aleksejev via RT
Eh. The effort required to implement the feature is much less than having discussions *like this*. I'll try to be quick. “there's large possibility of introducing some unwanted ambiguity somewhere” A good thing to keep in mind indeed. I don't really like these discussions before actual PRs, but

[perl #131781] :?smth should construct a truthy pair (say (:?foo))

2017-07-22 Thread Zoffix Znet via RT
On Sat, 22 Jul 2017 07:53:26 -0700, alex.jakime...@gmail.com wrote: > This should work: > > Code: > say (:?foo); > > Result: > ===SORRY!=== Error while compiling -e > Bogus statement > at -e:1 > --> say (:⏏?foo); > expecting any of: > colon pair > > > Because these work: > >

[perl #131781] :?smth should construct a truthy pair (say (:?foo))

2017-07-22 Thread Zoffix Znet via RT
On Sat, 22 Jul 2017 07:53:26 -0700, alex.jakime...@gmail.com wrote: > This should work: > > Code: > say (:?foo); > > Result: > ===SORRY!=== Error while compiling -e > Bogus statement > at -e:1 > --> say (:⏏?foo); > expecting any of: > colon pair > > > Because these work: > >

[perl #131781] :?smth should construct a truthy pair (say (:?foo))

2017-07-22 Thread via RT
# New Ticket Created by Aleks-Daniel Jakimenko-Aleksejev # Please include the string: [perl #131781] # in the subject line of all future correspondence about this issue. # https://rt.perl.org/Ticket/Display.html?id=131781 > This should work: Code: say (:?foo); Result: ===SORRY!=== Error