[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH] add regexp-split
From: |
Marijn |
Subject: |
Re: [PATCH] add regexp-split |
Date: |
Fri, 30 Dec 2011 14:23:34 +0100 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:8.0) Gecko/20111117 Thunderbird/8.0 |
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On 30-12-11 12:52, Nala Ginrut wrote:
> I just expressed "I think group capturing is useful and someone
> didn't think that's true". If this is not what your last mail
> mean, I think it's better to ignore it.
Group capturing is useful, but the question is whether it is useful in
the context of regexp-split. Maybe it is, maybe it isn't. Racket seems
to be doing it differently than python, so I think that constitutes
reason to look more closely. Certainly guile should follow racket over
python, everything else being equal, but usually everything isn't
equal if only one has a look and I'm saying that we should look at
least at other schemes for inspiration.
If you're so convinced that python is doing it right here and should
be followed, then perhaps you can give some examples of how capturing
groups are useful in a function that is supposed to split strings at
regexps.
Another data point:
[14:17] <hkBst> what does chicken return for (irregex-split "([^0-9])"
"123+456*/") ?
[14:18] <sjamaan> ("123" "456")
Looks like chicken doesn't do capturing groups in their version, but
they don't have the empty matches either. How about that...
Surely by now you can see that it's worth discussing over the
semantics of regexp-split.
Marijn
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.18 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
iEYEARECAAYFAk79u1YACgkQp/VmCx0OL2xpYACgpYuguKw4ju0GsX3ApqrZtjXF
ppsAn2wv0B8sNiSgtULA1TIFjiXh2Pdn
=C8E4
-----END PGP SIGNATURE-----
- Re: [PATCH] add regexp-split, (continued)
- Re: [PATCH] add regexp-split, Nala Ginrut, 2011/12/30
- Re: [PATCH] add regexp-split, Nala Ginrut, 2011/12/30
- Message not available
- Re: [PATCH] add regexp-split, Daniel Hartwig, 2011/12/30
- Re: [PATCH] add regexp-split, Nala Ginrut, 2011/12/30
- Re: [PATCH] add regexp-split, Nala Ginrut, 2011/12/30
- Re: [PATCH] add regexp-split, Daniel Hartwig, 2011/12/30
Re: [PATCH] add regexp-split, Marijn, 2011/12/30
- Re: [PATCH] add regexp-split, Nala Ginrut, 2011/12/30
- Re: [PATCH] add regexp-split, Marijn, 2011/12/30
- Re: [PATCH] add regexp-split, Nala Ginrut, 2011/12/30
- Re: [PATCH] add regexp-split,
Marijn <=
- Re: [PATCH] add regexp-split, Daniel Hartwig, 2011/12/30
- Re: [PATCH] add regexp-split, Daniel Hartwig, 2011/12/30
- Re: [PATCH] add regexp-split, Eli Barzilay, 2011/12/30
- Re: [PATCH] add regexp-split, Daniel Hartwig, 2011/12/30
- Re: [PATCH] add regexp-split, Eli Barzilay, 2011/12/30
- Re: [PATCH] add regexp-split, Daniel Hartwig, 2011/12/30
- Re: [PATCH] add regexp-split, Eli Barzilay, 2011/12/31
Re: [PATCH] add regexp-split, Neil Jerram, 2011/12/30