This is the mail archive of the
guile@cygnus.com
mailing list for the Guile project.
Re: Bracket heresies. What about subscripting?
Michael Vanier wrote:
It would be cool
> to have a read-macro that translated infix to prefix e.g.
>
> #{ a**2 + b**4 / c[i] } ;; e.g.
>
> becomes:
>
> (/ (+ (pow a 2) (pow b 4))
> (vector-ref c i))
>
> This would probably ease the transition to scheme for a
> lot of people.
I don't think you need a reader macro. Some plain old macro would do the
trick. One probably already exists if you look around. Lots of people
have suggested this over time.