Re: ?-suffix for booleans... good-idea? or bad-idea?

2017-05-05 Thread szgyg
foo (define-syntax-rule (create-useless-macro ?name) (define-syntax-rule (?name ??param) (display '(?name ??param (create-useless-macro foo) => (define-syntax-rule (foo ??param) (display '(foo ??param))) (foo bar) => (display '(foo bar)) This convention is us

Re: values->list elements

2006-06-13 Thread szgyg
ok like (+ 1 2) No, this is impossible without redefining +. A macro produces 1 sexp, not more. It seems like this would make multiple values much much more useful. szgyg ps: GNU Free Software Directory list guile-1.6.7 as recent ___ Guile-user ma

Re: values->list elements

2006-06-15 Thread szgyg
Jonathan Wilson wrote: szgyg wrote: No, this is impossible without redefining +. A macro produces 1 sexp, not more. This is exactly what I am getting at. Oh, yes, I see. This isn't a new idea, but the original semantic. | (this is not a serious proposal for a language extension,

Re: values->list elements

2006-06-16 Thread szgyg
Neil Jerram wrote: szgyg <[EMAIL PROTECTED]> writes: This isn't a new idea, but the original semantic. Interesting! So how come RnRS turned out not to include this? I don't know exactly, but see Steele & Gabriel: The Evolution of Lisp, 1993

Re: Need help to understand a macro

2010-03-20 Thread szgyg
Josef Wolf wrote: I am trying to understand the defstruct macro from the "teach yourself scheme in fixnum days" tutorial, which can be found in chapter 9 at http://www.ccs.neu.edu/home/dorai/t-y-scheme/t-y-scheme-Z-H-11.html#node_chap_9 My first question is of a more generic type. For a better u