Page 1 of 1

ANN: namespace.lsp - Java-like namespaces

Posted: Sat Jul 03, 2010 3:19 am
by itistoday
I've created a little project that adds Java-like namespaces to newLISP!

You can now do stuff like:

Code: Select all

(ns-import 'com.example.*)
(ns-import 'com.example2.Test)

(Test:foo "bar")
In a nutshell, this solves the name clashing issues in newLISP and means newLISP is now much easier to use for large projects.

It's on GitHub and Bitbucket!

http://github.com/taoeffect/namespace-newlisp
http://bitbucket.org/taoeffect/namespace-newlisp

Re: ANN: namespace.lsp - Java-like namespaces

Posted: Sat Jul 03, 2010 4:19 am
by itistoday
Oh, and btw, this was made possible by the recent addition of the prefix function. :-)

Re: ANN: namespace.lsp - Java-like namespaces

Posted: Sat Jul 03, 2010 6:59 pm
by cormullion
It's cool! Thanks. Some useful by-products from your recent Clojure investigations?!

Re: ANN: namespace.lsp - Java-like namespaces

Posted: Sat Jul 03, 2010 7:39 pm
by itistoday
cormullion wrote:It's cool! Thanks. Some useful by-products from your recent Clojure investigations?!
Yup!

I actually use a newLISP script to run Clojure. :-p