From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Daniel Skarda <0rfelyus@ucw.cz> Newsgroups: gmane.lisp.guile.devel Subject: Re: Adding stuff to the core distro (was Re: Infix syntax) Date: 20 Oct 2002 21:05:10 +0200 Sender: guile-devel-admin@gnu.org Message-ID: References: <20021019171721.A18616@kiwi.pyrotechnics.com> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1035153386 13226 80.91.224.249 (20 Oct 2002 22:36:26 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Sun, 20 Oct 2002 22:36:26 +0000 (UTC) Cc: guile-devel@gnu.org Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 183OgL-0003R3-00 for ; Mon, 21 Oct 2002 00:36:25 +0200 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.10) id 183Oe9-00042q-00; Sun, 20 Oct 2002 18:34:09 -0400 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10) id 183Odq-0003uY-00 for guile-devel@gnu.org; Sun, 20 Oct 2002 18:33:50 -0400 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10) id 183Odo-0003tC-00 for guile-devel@gnu.org; Sun, 20 Oct 2002 18:33:49 -0400 Original-Received: from stateless1.tiscali.cz ([213.235.135.70] helo=mail.tiscali.cz) by monty-python.gnu.org with esmtp (Exim 4.10) id 183Odn-0003rL-00 for guile-devel@gnu.org; Sun, 20 Oct 2002 18:33:47 -0400 Original-Received: from hobitin.ucw.cz (212.11.98.212) by mail.tiscali.cz (6.0.044) id 3DA29C7F00202BCC; Mon, 21 Oct 2002 00:32:38 +0200 Original-Received: from 0rfelyus by hobitin.ucw.cz with local (Exim 3.36 #1 (Debian)) id 183LNu-0001Hw-00; Sun, 20 Oct 2002 21:05:10 +0200 Original-To: Christopher Cramer In-Reply-To: <20021019171721.A18616@kiwi.pyrotechnics.com> Original-Lines: 42 User-Agent: Gnus/5.0808 (Gnus v5.8.8) Emacs/20.7 Errors-To: guile-devel-admin@gnu.org X-BeenThere: guile-devel@gnu.org X-Mailman-Version: 2.0.11 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: Developers list for Guile, the GNU extensibility library List-Unsubscribe: , List-Archive: Xref: main.gmane.org gmane.lisp.guile.devel:1579 X-Report-Spam: http://spam.gmane.org/gmane.lisp.guile.devel:1579 > On Wed, Oct 16, 2002 at 11:35:15PM +0200, Daniel Skarda wrote: > > ps: Sometimes I also use read-hash extension for shorter > > (sed|awk|perl|...)-like regular expressions: #/foo.*bar/i, sometimes > > I also use srfi-10 #,(rx "foo.*bar" icase). Do you think that other > > guilers would benefit from such hairy extensions? > > Ack. I actually started using #/ for SQL. Oops :-) How do you use it for SQL? I usually do not support adding new syntactic sugar to Scheme, but sometimes I simply can not resist :-) I picked up #/regexp/ since almost all programmers are familiar with similar syntax from perl, awk, sed and other shell utils. The advantage of this style of writing regexps is its "regexpness" :-) and the ability to create regexp during read (no need to "toplevel" define etc). The later can also be achieved by #,(rx "regexp"), which is more schemish but less regexpish, it is longer and you have to write two escapes instead of one (definitely not tempting features for lazy programmers :-). As I wrote in another email I would like to add lisp-like readtables to Guile read so it would be possible to make read-hash-extension per-module. IMHO Guile should come with modules that implement/activate syntax extensions (like infix syntax, #/regexps/, #,(rx "regexp") or whatever), if we preserve following rules: 1) extensions are off by default 2) no Guile code (srfi,ice-9) use or depends on these extensions. 3) user is clearly warned that these extensions are not portable 4) one extensions does not clash with another... Maybe we also should pick some policy to prevent future clashes (#/regexps/ versus your #/ in SQL) 0. _______________________________________________ Guile-devel mailing list Guile-devel@gnu.org http://mail.gnu.org/mailman/listinfo/guile-devel