Hi,
Am 18.04.2009 um 14:34 schrieb Stephen C. Gilardi:
java -cp .. clojure.main -E my.ns/main my-script-defining-my-ns.clj
I'm trying to make this kind of command line easier to use and
explain. We basically already have what you're proposing:
java -cp .. clojure.main -i my-script-definin
On Apr 18, 2009, at 5:24 AM, Meikel Brandmeyer wrote:
Ok. You asked for it, so I will play the devil's advocate!
Why this fixing on one somehow blessed function? When the
namespace is loaded I can call any public function directly.
Why do I need (run ...)? I don't see the value of this, since
Hi,
Am 18.04.2009 um 01:16 schrieb Stephen C. Gilardi:
I have a proposal for a standard way to make a namespace "executable"
and to invoke it as a program/script.
I miss this so badly! Up to now, I always used gen-class to compile
a class with a main function to get this functionality. Since
On Apr 17, 2009, at 11:40 PM, Stuart Sierra wrote:
On Apr 17, 11:23 pm, "Stephen C. Gilardi" wrote:
I suggest using a "-main" function for this purpose. Then with
(ns ... (:gen-class)) you can generate a static Java class with same
behavior.
And if the :gen-class clause renamed main would
On Apr 17, 11:23 pm, "Stephen C. Gilardi" wrote:
> > I suggest using a "-main" function for this purpose. Then with
> > (ns ... (:gen-class)) you can generate a static Java class with same
> > behavior.
>
> And if the :gen-class clause renamed main would the main function for
> this namespace
On Apr 17, 2009, at 10:28 PM, Stuart Sierra wrote:
I suggest using a "-main" function for this purpose. Then with
(ns ... (:gen-class)) you can generate a static Java class with same
behavior.
And if the :gen-class clause renamed main would the main function for
this namespace be that name
2009/4/18 Stuart Sierra
>
> On Apr 17, 7:16 pm, "Stephen C. Gilardi" wrote:
> > I have a proposal for a standard way to make a namespace "executable"
> > and to invoke it as a program/script.
> ...
> > - add a key to the "ns" form to specify, as a symbol, the name of
> > a function to be ca
On Apr 17, 7:16 pm, "Stephen C. Gilardi" wrote:
> I have a proposal for a standard way to make a namespace "executable"
> and to invoke it as a program/script.
...
> - add a key to the "ns" form to specify, as a symbol, the name of
> a function to be called when the namespace is "invoked
Hi,
This indeed seems like an improvement to me, since from then there will be
no excuse to have namespaces doing time or resource consuming operations
(I'm thinking about those scripts that automatically load GUIs, ...) at load
(and even compile *ouch*) time.
* Concerning the name of the keyword
On Apr 17, 2009, at 5:21 PM, Tom Faulhaber wrote:
> I'd also like to see a little more focus on the perl/python/ruby
> equivalence from a newbie perspective. That is, more clarity around
> startup, script execution (including having an equivalent to python's
> "if __name__ == '__main__':" constr
10 matches
Mail list logo