On Fri, Aug 13, 2010 at 9:39 PM, Eric Lavigne lavigne.e...@gmail.com wrote:
This is not a rare problem for me. Like Mike Anderson, I work around
it by putting extra thought into which package-level dependencies I
will allow, which sometimes necessitates creating more or fewer
packages than I
Hi all,
A while ago I hooked Slime's completion and documentation features into the
popular Emacs auto-completion framework auto-complete
(http://www.emacswiki.org/emacs/AutoComplete).
Since it may be of interest to others, I've released the completion plugin on
github:
On Aug 14, 9:07 am, Kevin Downey redc...@gmail.com wrote:
so clients don't directly call the protocol functions they call
print-ast which then checks to see if PrettyPrintable has been
extended to the object and falls back to the default if it hasn't
Sure, but I'm talking about publishing
Continuing this train of thought...
1. The declare macro may be handy for declaring multiple names at
once.
2. Maybe one could use the functions in clojure.repl or clojure-
contrib.ns-utils to write something that automatically forward
declares everything needed?
On Aug 13, 10:49 pm, Tim Daly
On Aug 14, 3:22 am, Armando Blancas armando_blan...@yahoo.com wrote:
A more concrete example: say I've defined a protocol for AST nodes in
1.0 of a library, and later when developing 2.0 I discover it would
have been a good idea to have a pretty-print method on nodes to show
human-readable
Adding to Object works, but doesn't feel right: as libraries grow,
they'll start bloating out the method sets on the global Object type.
No, you have this backwards. The protocol is not on Object, Object is on the
protocol. Protocols live in namespaces. You can have 10,000 different protocols
On Sat, Aug 14, 2010 at 5:32 AM, Matthew Phillips mattp...@gmail.com wrote:
One idea that I tried was to use extend-type on a protocol, say to
extend any Node to be a PrettyPrintableNode. Obviously this didn't
work, and I'm not sure it actually makes semantic sense, but it's
interesting that
Matthew Phillips mattp...@gmail.com writes:
;; A node has a data attachment and (possibly) children
(defprotocol Node
(data [n])
(children [n]))
(deftype SimpleNode [d]
Node
(data [n] d)
(children [n] []))
;; In version 2, I add want to add pretty-printing
(defprotocol
One example is a contract programming job I did recently, writing
software for identifying radioactive isotopes based on measurements of
their emission spectra. In the end I had 7 Clojure source files (not
including tests). I will show them in such an order that each file
depends only on previous
On Aug 13, 11:23 pm, Shantanu Kumar kumar.shant...@gmail.com wrote:
As far I understand, transactions belong to the user. The user should
decide what to execute under which transaction. By beginning
transaction inside these functions, is it assumed that the user can
wrap bigger constructs
On Aug 14, 2010, at 12:58 AM, Gregg Williams wrote:
** Second announcement: GettingClojure.com, a collaborative site for
Clojure beginners
gettingclojure.com currently redirects to www.wikidot.com.
www.gettingclojure.com is fine, though.
--
You received this message because you are
grep for defn and write out def forms to a file?
Btsai wrote:
Continuing this train of thought...
1. The declare macro may be handy for declaring multiple names at
once.
2. Maybe one could use the functions in clojure.repl or clojure-
contrib.ns-utils to write something that automatically
I see, I am reading that Extending Java Classes using proxy article.
2010/8/15 Michael Gardner gardne...@gmail.com:
On Aug 14, 2010, at 12:58 AM, Gregg Williams wrote:
** Second announcement: GettingClojure.com, a collaborative site for
Clojure beginners
gettingclojure.com currently
13 matches
Mail list logo