newLISP Fan Club

Forum => newLISP newS => Topic started by: itistoday on July 02, 2010, 08:19:53 PM

Title: ANN: namespace.lsp - Java-like namespaces
Post by: itistoday on July 02, 2010, 08:19:53 PM
I've created a little project that adds Java-like namespaces to newLISP!



You can now do stuff like:


(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
Title: Re: ANN: namespace.lsp - Java-like namespaces
Post by: itistoday on July 02, 2010, 09:19:38 PM
Oh, and btw, this was made possible by the recent addition of the prefix function. :-)
Title: Re: ANN: namespace.lsp - Java-like namespaces
Post by: cormullion on July 03, 2010, 11:59:02 AM
It's cool! Thanks. Some useful by-products from your recent Clojure investigations?!
Title: Re: ANN: namespace.lsp - Java-like namespaces
Post by: itistoday on July 03, 2010, 12:39:40 PM
Quote from: "cormullion"It's cool! Thanks. Some useful by-products from your recent Clojure investigations?!


Yup!



I actually use a newLISP script (//http) to run Clojure. :-p