Arc Forumnew | comments | leaders | submitlogin
1 point by conanite 4917 days ago | link | parent

(stdin) and (string '("")) are fixed now in rainbow, as well as 'writec returning nil. Other bugs ... are noted ...

What is the issue with [] in rainbow? This works:

  arc> ([* _ 2] 3)
  6
Do you have an example?

I added macex1 as an arc fn (it's a builtin in arc3) -

  (def macex1 (expr)
    (let macro car.expr
      (if (and (isa macro 'sym)
               (bound macro)
               (isa (eval macro) 'mac))
        (let mac-impl (rep:eval macro)
          (apply mac-impl cdr.expr))
        expr)))


2 points by rocketnia 4916 days ago | link

What is the issue with [] in rainbow? ... Do you have an example?

I think you'll find it's a very simple example. :-p

  arc> []
  rainbow.parser.ParseException: Encountered "]" at line 1, column 2.
As for 'macex1, there's definitely one inconsistency, which is that it doesn't work unless car.expr works. I also briefly worried about ssyntax, but I'm not sure it's a problem; official Arc lets (assign a.b nil) cause (bound 'a.b) to be true, but I don't blame Rainbow for not emulating that.

-----

1 point by conanite 4916 days ago | link

aha ... fixed []. Changed a "+" to a "*" to allow empty bodies ...

-----