develooper Front page | perl.perl5.porters | Postings from July 2016

Re: Indented here docs?

Thread Previous | Thread Next
From:
Sawyer X
Date:
July 2, 2016 19:37
Subject:
Re: Indented here docs?
Message ID:
577817CF.5060108@gmail.com



On 07/01/2016 06:56 PM, Glenn Golden wrote:
> Zefram <zefram@fysh.org> [2016-07-01 16:47:05 +0100]:
>> Matthew Horsfall (alh) wrote:
>>>  Newlines will be copied as is, and lines that don't include the
>>>  proper beginning whitespace will throw warnings.
>> If omitting the beginning whitespace is improper, it should be signalled
>> as an error.  I see no reason for it to be legal.  As there is no
>> established usage of a lax version of this facility, we are free to be
>> strict about it being used in the proper meaningful manner.
>>
> +1 from the Moron Gallery.
>
> Imo, Zefram's comment is wise guidance for any new syntactic idiom:
> Start out with a strict diagnostic policy, and relax it only if/when
> it becomes very popular and users are asking for a less fascist
> interpretation.  (Seems like that direction would be less likely to
> result in compat issues too.)
>
> Just 2c from a non-expert Joe User type.

I agree with Glenn and Zefram.

No point in supporting something we will likely want to deprecate later.

Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About