perl6-internals
[Top] [All Lists]

Re: [PATCH] cygwin070patches_6+7.patch

To: Allison Randal <allison@perl.org>
Subject: Re: [PATCH] cygwin070patches_6+7.patch
From: Reini Urban <rurban@x-ray.at>
Date: Fri, 29 Aug 2008 16:13:16 +0200
Cc: p2 <parrot-porters@perl.org>
Delivered-to: mailing list perl6-all@perl.org
Delivered-to: perl6-all-poster@perl.org
Delivered-to: mailing list perl6-internals@perl.org
Delivered-to: perl6-internals@perl.org
Delivered-to: perlmail-parrot-porters@onion.perl.org
Delivered-to: parrot-porters@perl.org
In-reply-to: <48B70DA2.4060507@perl.org>
List-help: <mailto:perl6-all-help@perl.org>
List-id: <perl6-all.perl.org>
List-id: <perl6-internals.perl.org>
List-post: <mailto:perl6-all@perl.org>
List-subscribe: <mailto:perl6-all-subscribe@perl.org>
List-unsubscribe: <mailto:perl6-all-unsubscribe@perl.org>
Mailing-list: contact perl6-all-help@perl.org; run by ezmlm
References: <48B5931A.5000503@x-ray.at> <48B70DA2.4060507@perl.org>
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; de-AT; rv:1.8.1.13) Gecko/20080313 SeaMonkey/1.1.9
Allison Randal schrieb:
Reini Urban wrote:
A new idea:
===========
#IF(darwin):
#ALSO:# MACOSX_DEPLOYMENT_TARGET must be defined for OS X
#ALSO:export MACOSX_DEPLOYMENT_TARGET := @osx_version@

Just a little too much complexity, for not enough benefit.

The POD for this change:

Looks good.

For legacy the old syntax #CONDITIONED_LINE(var): and
#INVERSE_CONDITIONED_LINE(var): is also supported.

Mention that this syntax will be deprecated.

For lispers the well-known reader-macro syntax #+(and key1 (not key2)):
is also supported, #+ #- with and, or and not, or being the default
for multiple keys without operator. But note the ending C<:>.

This syntax is not supported. The primary reason for rejecting the syntax is because it's too much of a burden on maintainers. If we keep the feature someone will certainly use it, and some poor P-language programmer is going to get stuck trying to decipher it.

I hope you know that this #+() syntax is the only existing syntax.
It is widely used since about 20 years.
The rest is something new we came up with.

I deleted it. Sigh.

  * or a key=value expression, which checks for the config key,
    Note that values may contain no spaces here. Quotes in values
    are not supported.

Seems like a sensible addition, though very limited. Make it '==' instead of '='.

A key must only consist of word characters, and is checked
case-sensitively against the config key or the platform name.

Explicitly say what you mean by "word characters", because different languages treat different characters as word forming. If you mean A-Z, a-z, and 0-9, say so.

Ok, the cygwin070patches_7.patch includes all of these suggestions.
There's still a parser problem with some obscure logic, which I
have to fix. See the TODO tests.

First I want cygwin070patches_6.patch to be applied,
then this patch cygwin070patches_7.patch.

ChangeLog for 7. For 6 see other mail:
applied Allisons suggestions for key==value, doc improvements,
removed lisp-style, more tests, and detected some TODO cases.
--
Reini Urban
http://phpwiki.org/  http://murbreak.at/

Attachment: cygwin070patches_6.patch.gz
Description: GNU Zip compressed data

Attachment: cygwin070patches_7.patch.gz
Description: GNU Zip compressed data

<Prev in Thread] Current Thread [Next in Thread>