Arc Forumnew | comments | leaders | submitlogin
6 points by offby1 6277 days ago | link | parent

why not just use "write"?


1 point by kens 6276 days ago | link

Thanks; I didn't see "write".

A couple more problems:

  arc> (= x (thread (fn () nil)))
  #<thread>
  arc> (prn x)
  #<thread>Error: "Type: unknown type #<thread>"
  arc> (prn (exact 1))
  #tError: "Type: unknown type #t"
  
It looks like the Scheme types are leaking through, breaking things that use them, not just prn.

-----

1 point by kens 6276 days ago | link

One more output question:

  arc> (= x '`(a ,b ,@c))
  (quasiquote (a (unquote b) (unquote-splicing c)))
How can I print x in its original short form, rather than expanded out (as prn does)? Is there an easy function I'm missing, or do I need to write my own?

-----