Arc Forumnew | comments | leaders | submitlogin
8 points by brett 6076 days ago | link | parent

It's not really a bug as much as an artifact of the REPL. You are seeing what the call to (link ...) prints and then the return value of the same call printed right after it by the REPL.

Changing the return value illustrates the point:

  arc> (no (link "A Link" "somepage.html"))
  <a href="somepage.html">A Link</a>nil
It might not be optimal that link (or really tag) always returns "</", but I'm not sure it matters.


1 point by ryantmulligan 6076 days ago | link

This seems related to the previous confusion caused by prn's return value. http://www.arclanguage.org/item?id=302

Though the result of prn may be chosen for efficiency sake, doesn't feel consistent to me.

-----