[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: english names for symbolic SREs
- To: John Cowan <cowan@xxxxxxxxxxxxxxxx>
- Subject: Re: english names for symbolic SREs
- From: Michael Montague <mikemon@xxxxxxxxx>
- Date: Tue, 26 Nov 2013 13:13:31 -0800
- Cc: Alex Shinn <alexshinn@xxxxxxxxx>, SRFI-115 discussion list <srfi-115@xxxxxxxxxxxxxxxxx>
- Delivered-to: srfi-115@xxxxxxxxxxxxxxxxx
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:content-type:content-transfer-encoding; bh=KphGUDTYZt1QlXw+RhKgL4Y9nsdhQGy1ywzoH0ndBLA=; b=W9OJNR1YuZOgv8X9IV/DAkNSPX59WHpPvGOBno3KPwHCBxveKB6RfohFIN5iAuzowM ObbLk2TRMxTp3Kbd6leR8mhWyiJYTA0w9KmopwolDzPbSCFvuyL/qpzPHk6KehkB2wO3 4BJ8QZEw2zhBWXyBVBXKjoSf+Qc0XKxptsIkM/Ty4RwVCcny8LX8fz1AMhePeqDc/B9Z s+1fLVCyzEv2NjFx6xLu/xSCI1tmeyjP1c58fNb9oqiY0kDvvjL0UMqaqgIIvAHCR7Ib BAsWyzOlAZ4ipkGcpB5PeD8xpaZkSdifVYQQFRIyWPTidNhuCTQEfo7SjudHihkrRoVx 7jJg==
- In-reply-to: <20131126182817.GJ20755@mercury.ccil.org>
- References: <CAMMPzYOMNkno7=PdYkjqyE+vQayg5=jbxRTo=OZ0Jy9etqjgemail@example.com> <5294DEC2.firstname.lastname@example.org> <20131126182817.GJ20755@mercury.ccil.org>
- User-agent: Mozilla/5.0 (Windows NT 6.3; WOW64; rv:24.0) Gecko/20100101 Thunderbird/24.1.1
On 11/26/2013 10:28 AM, John Cowan wrote:
Briefly looking through the first 16 or so implementations listed on
appeared to me that only Chicken and Chibi provide SRE regular
expressions. Most of the others provide something like PCRE regular
expressions with a different API than this SRFI. For example, Bigloo,
Racket, and Dorai Sitaram's pregexp don't use a <regexp-match> object,
but return the matches directly.
Michael Montague scripsit:
I propose breaking SREs completely free of PCREs.
SREs are not new to this SRFI: they have been around since 1998.
See <http://www.scsh.net/docu/post/sre.html>. Gratuitously breaking
other people's code is not nice.
This SRFI is going to break people's code no matter how it comes out,
particularly if it becomes part of R7RS-large.
My opinion: SREs are a mutant love child of Scheme and Perl. To
understand them you need to understand Scheme and PCREs. You need to
remember what a bunch of characters like *+?= mean. Not fun. Too much
PCREs and not enough Scheme.
I think SREs are cool. I don't think that Olin Shivers went far enough
into the world of Scheme with the syntax. My proposed syntax would make
SREs easier to learn without knowing PCREs first and it would make it
easier for casual users of SREs to remember the syntax.
I don't think that I am trying to gratuitously break other people's
code. That is certainly not my goal.