Re: [PATCH] Replace define-macro with syntax-rules

2013-09-30 Thread Taylan Ulrich B.
Ian Price writes: > taylanbayi...@gmail.com (Taylan Ulrich B.) writes: > >> (define-syntax endianness >> (syntax-rules () >> ((_ big) 'big) >> ((_ little) 'little))) > Except now whenever you use it, you only ever get big endianness. You >

Re: [PATCH] Replace define-macro with syntax-rules

2013-09-28 Thread Taylan Ulrich B.
kact...@gnu.org writes: > From: Dmitry Bogatov > > As I can see, definition with define-macro is hygienic and > move to syntax-rules adds two lines of code, but define-syntax > is considered preferable. > > WDYT? > Signed-off-by: Dmitry Bogatov > --- > module/rnrs/bytevectors.scm | 11 ++

Re: [PATCH] wrong description of string-rindex

2013-09-10 Thread Taylan Ulrich B.
I see `string-rindex' is equivalent to (and implemented via) `string-index-right'. The latter is the SRFI-13 name, the former I suppose Guile-specific; is there a reason not to deprecate the former?

Re: Guile Emacs: Elisp nil/t and Guile #nil/#t

2013-08-19 Thread Taylan Ulrich B.
l...@gnu.org (Ludovic Courtès) writes: > taylanbayi...@gmail.com (Taylan Ulrich B.) skribis: > >> It occurred to me that nil and t are basically just symbols in Elisp, >> just with some magical properties. Like any symbol, they respond to >> symbolp, have a plist, value a

Re: return value of `string-set!'

2013-08-15 Thread Taylan Ulrich B.
Alexandru Cojocaru writes: > (define (make-copy str) > (let ((s (string-copy str))) > (begin > (string-set! s 0 #\a) > s))) FYI the `begin' there is redundant. (define (make-copy str) (let ((s (string-copy str))) (string-set! s 0 #\a) s)) This is idiomatic Scheme code; it

Re: Guile Emacs: Elisp nil/t and Guile #nil/#t

2013-08-05 Thread Taylan Ulrich B.
FYI, the CC'd address of BT Templeton is wrong (.net not .org), sorry about that.

Re: Guile Emacs: Elisp nil/t and Guile #nil/#t

2013-08-03 Thread Taylan Ulrich B.
Neil Jerram writes: > Solution for what problem? A from-scratch explanation, just so I'm sure I'm clear: For different languages running on Guile to integrate seamlessly, we want them to share as many data-types as possible. E.g. it would be inacceptable if a JavaScript function returned `true

Guile Emacs: Elisp nil/t and Guile #nil/#t

2013-07-31 Thread Taylan Ulrich B.
erwise no way to pass Elisp data to Scheme procedures (eval-scheme takes a string). The problems they solve will probably be solved better in the future. >From f926a808e98e9ace24d07ee9ca7c1137f4670a62 Mon Sep 17 00:00:00 2001 From: Taylan Ulrich B Date: Thu, 1 Aug 2013 03:45:09 +0300 Subjec

Re: Guile parsing html and htmlprag.

2013-07-24 Thread Taylan Ulrich B.
Dmitry Bogatov writes: > Hello! > > Beeing in need to parse html(not xml) with Guile, I discovered that we > have no one-true-way solution, like python's Beautiful Soup. The best we > have is htmlprag-0.16. It works for me, good documented(even in > TexInfo), but it is dropped by it's author. I t

Re: [PATCH] Add support for HTTP proxies

2013-06-12 Thread Taylan Ulrich B.
l...@gnu.org (Ludovic Courtès) writes: > taylanbayi...@gmail.com (Taylan Ulrich B.) skribis: > >> l...@gnu.org (Ludovic Courtès) writes: >> >>> What about just: >>> >>> (make-parameter (getenv "http_proxy")) >> >> The empty-st

Re: [PATCH] Add support for HTTP proxies

2013-06-12 Thread Taylan Ulrich B.
l...@gnu.org (Ludovic Courtès) writes: > What about just: > > (make-parameter (getenv "http_proxy")) The empty-string case needs to be handled specially, no? Perhaps: (define current-http-proxy (make-parameter (getenv "http_proxy") (lambda (proxy)

Re: Manual section on compilation doesn't mention (system base compile)

2013-05-21 Thread Taylan Ulrich B.
r commit in Guile for examples also. > > I'm being picky but it's worth it for this first of many patches :) > > Regards, > > Andy No problem at all being picky, I'm all for consistency. :) Still a Gnus-noob, I hope this attachment is fine. >From ce82e318bc35201c

Re: Manual section on compilation doesn't mention (system base compile)

2013-05-20 Thread Taylan Ulrich B.
Andy Wingo writes: > On Mon 13 May 2013 00:47, taylanbayi...@gmail.com (Taylan Ulrich B.) writes: > >> The manual section 6.17.5, (info "(guile) Compilation"), doesn't say >> in which module the functions it mentions reside. Here is a patch for >> doc/re

Manual section on compilation doesn't mention (system base compile)

2013-05-12 Thread Taylan Ulrich B.
The manual section 6.17.5, (info "(guile) Compilation"), doesn't say in which module the functions it mentions reside. Here is a patch for doc/ref/api-evaluation.texi: diff --git a/doc/ref/api-evaluation.texi b/doc/ref/api-evaluation.texi index 63b1d60..afde42d 100644 --- a/doc/ref/api-evaluation

Building on OpenBSD

2012-08-03 Thread Taylan Ulrich B.
I wanted to note that, given a working boehm-gc (the next release, 7.2d, should work on OpenBSD 5.1, but newer OpenBSD versions, having switched to rthreads, will break it again), and a set of build flags similar to the following (these are tied to my personal setup) should allow one to build guile