[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Guile Assembler

From: Barry Fishman
Subject: Re: Guile Assembler
Date: Tue, 23 Jun 2015 08:54:23 -0400
User-agent: Gnus/5.130014 (Ma Gnus v0.14) Emacs/25.0.50 (gnu/linux)

On 2015-06-23 17:19:56 +0800, Nala Ginrut wrote:
> On Tue, 2015-06-23 at 11:12 +0200, address@hidden wrote:
>> What does number/base do? Does it change the read syntax of numbers?
> I think it defines a function (number/base base) first, then use it as
> argument of the outer function...

How is this syntax macro style improve on a more direct and simple
standard scheme implementation of:

(define (number/base base)
  (lambda (lst)
    (let loop ((digits lst)
               (accumulator 0))
      (if (null? digits)
          (loop (cdr digits)
                (+ (car digits) (* accumulator base)))))))

This amalgam of 'match' and 'define-syntax's style '...', and
'destructuring-bind' syntax just seems to add complexity to a language
whose prime benefit is the clarity of its explicitness and lack of

Barry Fishman

reply via email to

[Prev in Thread] Current Thread [Next in Thread]