2 replaced http://codegolf.stackexchange.com/ with https://codegolf.stackexchange.com/
source | link

This challengeThis challenge requires us to create a "full program" that produces an infinite loop, and never outputs.

The problem is, I'm not sure what's considered a full program in Clojure.

If I were writing non-golfing code, my project would start out as:

(ns package1.package2)

(defn -main [& args])

At the bare minimum. I know the ns macro is pretty much a requirement for any real code, but is it required for a "full program"?

And what about -main? Technically, the main function doesn't even need to be called -main; that's just the default. I could name it anything as long as I adjusted the project.clj accordingly. I don't think an anonymous function would be passable though since it couldn't be called. Does that mean the only requirement is that it contains a named function?

This challenge requires us to create a "full program" that produces an infinite loop, and never outputs.

The problem is, I'm not sure what's considered a full program in Clojure.

If I were writing non-golfing code, my project would start out as:

(ns package1.package2)

(defn -main [& args])

At the bare minimum. I know the ns macro is pretty much a requirement for any real code, but is it required for a "full program"?

And what about -main? Technically, the main function doesn't even need to be called -main; that's just the default. I could name it anything as long as I adjusted the project.clj accordingly. I don't think an anonymous function would be passable though since it couldn't be called. Does that mean the only requirement is that it contains a named function?

This challenge requires us to create a "full program" that produces an infinite loop, and never outputs.

The problem is, I'm not sure what's considered a full program in Clojure.

If I were writing non-golfing code, my project would start out as:

(ns package1.package2)

(defn -main [& args])

At the bare minimum. I know the ns macro is pretty much a requirement for any real code, but is it required for a "full program"?

And what about -main? Technically, the main function doesn't even need to be called -main; that's just the default. I could name it anything as long as I adjusted the project.clj accordingly. I don't think an anonymous function would be passable though since it couldn't be called. Does that mean the only requirement is that it contains a named function?

1
source | link

Full program in Clojure

This challenge requires us to create a "full program" that produces an infinite loop, and never outputs.

The problem is, I'm not sure what's considered a full program in Clojure.

If I were writing non-golfing code, my project would start out as:

(ns package1.package2)

(defn -main [& args])

At the bare minimum. I know the ns macro is pretty much a requirement for any real code, but is it required for a "full program"?

And what about -main? Technically, the main function doesn't even need to be called -main; that's just the default. I could name it anything as long as I adjusted the project.clj accordingly. I don't think an anonymous function would be passable though since it couldn't be called. Does that mean the only requirement is that it contains a named function?