[perl #131877] [LTA] better error message for exit("hello")

2017-08-10 Thread Zoffix Znet via RT
On Thu, 10 Aug 2017 06:37:58 -0700, szab...@gmail.com wrote: > However a more common case is the frequent language switching. I keep > typing Python constructs in Perl and Perl constructs in Python. Not to > mention Perl 5 vs 6 constructs. And JavaScript too. This is really a double-edged sword.

[perl #131877] [LTA] better error message for exit("hello")

2017-08-10 Thread Zoffix Znet via RT
On Thu, 10 Aug 2017 06:37:58 -0700, szab...@gmail.com wrote: > However a more common case is the frequent language switching. I keep > typing Python constructs in Perl and Perl constructs in Python. Not to > mention Perl 5 vs 6 constructs. And JavaScript too. This is really a double-edged sword.

Re: [perl #131877] [LTA] better error message for exit("hello")

2017-08-10 Thread Gabor Szabo
On Thu, Aug 10, 2017 at 3:59 PM, Zoffix Znet via RT wrote: > On Thu, 10 Aug 2017 02:09:30 -0700, szab...@gmail.com wrote: >> In Python one can pass a string to the exit() function >> Would it be possible to special case > > Not really keen on adding special cases to

Re: [perl #131877] [LTA] better error message for exit("hello")

2017-08-10 Thread Gabor Szabo via RT
On Thu, Aug 10, 2017 at 3:59 PM, Zoffix Znet via RT wrote: > On Thu, 10 Aug 2017 02:09:30 -0700, szab...@gmail.com wrote: >> In Python one can pass a string to the exit() function >> Would it be possible to special case > > Not really keen on adding special cases to

[perl #131877] [LTA] better error message for exit("hello")

2017-08-10 Thread Zoffix Znet via RT
On Thu, 10 Aug 2017 02:09:30 -0700, szab...@gmail.com wrote: > In Python one can pass a string to the exit() function > Would it be possible to special case Not really keen on adding special cases to support programming-by-guessing instead of reading the documentation. However, it's worth

[perl #131877] [LTA] better error message for exit("hello")

2017-08-10 Thread Zoffix Znet via RT
On Thu, 10 Aug 2017 02:09:30 -0700, szab...@gmail.com wrote: > In Python one can pass a string to the exit() function > Would it be possible to special case Not really keen on adding special cases to support programming-by-guessing instead of reading the documentation. However, it's worth

Re: [perl #131877] [LTA] better error message for exit("hello")

2017-08-10 Thread Brandon Allbery via RT
At some point, one has to accept that this language is not Python, not call for one's favorite Python-isms to be incorporated into the core regardless of how it might interact with what is already there. On Thu, Aug 10, 2017 at 8:12 AM, Aleks-Daniel Jakimenko-Aleksejev via RT <

Re: [perl #131877] [LTA] better error message for exit("hello")

2017-08-10 Thread Brandon Allbery
At some point, one has to accept that this language is not Python, not call for one's favorite Python-isms to be incorporated into the core regardless of how it might interact with what is already there. On Thu, Aug 10, 2017 at 8:12 AM, Aleks-Daniel Jakimenko-Aleksejev via RT <

[perl #131877] [LTA] better error message for exit("hello")

2017-08-10 Thread Aleks-Daniel Jakimenko-Aleksejev via RT
There's a little problem with it. You see, right now this works: exit "1" So we simply cannot force it to do something else with Strs because that can break existing (perfectly valid) code. We can go through a long deprecation cycle but it's not worth it (IMO). But it may be possible to catch