Hi Sungjin, Although Clojure draws from the long history of Lisps, it is very much its own language. In particular, the emphasis on immutable data by default makes Clojure very different from both Common Lisp and Scheme. Porting code from another Lisp to Clojure will usually require a complete redesign.
Based on looking very briefly at the code you linked to, it looks like it might be some kind of agent-based simulation. Clojure's Agents may be something worth exploring: http://clojure.org/agents –S On Friday, December 18, 2015 at 5:07:38 PM UTC-5, Sungjin Chun wrote: > > Hi, > > The code repo is https://github.com/wzrdsappr/trading-core . > > If you look at the code, the main trading agent is designed using > inheritance and the main > operation (consume) function mainly depends upon mutable update of agent's > states. > > As far as I know Clojure does not permit attribute inheritance and this > kind of state update is > not recommended approach. > > What would be the best approach in Clojure? > > Thank you in advance and sorry for my poor english. > -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clojure@googlegroups.com Note that posts from new members are moderated - please be patient with your first post. To unsubscribe from this group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en --- You received this message because you are subscribed to the Google Groups "Clojure" group. To unsubscribe from this group and stop receiving emails from it, send an email to clojure+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.