Arc Forumnew | comments | leaders | submitlogin
3 points by rocketnia 4195 days ago | link | parent

I thought it was pretty easy to use Racket libraries (except for macros). When I wrote Anarki's libs/ns.arc, I had trouble, but not this kind of trouble. However, I guess I never really tried to add imports to ac.scm. What do you mean by "it doesn't seem to work"?


2 points by forwardslash 4195 days ago | link

It could be that I'm working off a codebase that is missing some functions which Anarki uses to do that (I'm going through and comparing them now). When I try simply xdefing functions from libraries I get errors like "Expected 0 arguments with optional arguments X Y Z and got (args)"

I'm thinking of trying to follow how lib/json.ss integrates itself: https://github.com/arclanguage/anarki/blob/master/lib/json.s...

or perhaps wrapping things in a module.

-----

2 points by akkartik 4195 days ago | link

Can you give us a simple, reproducible set of directions based on say arc3.1?

-----