Re: Readable names

2008-11-11 Thread Albert Cardona
Since I don't hear this argument too often, I image Clojure is striking an acceptable balance. What does everyone else think? Totally agree. See for example the extreme brevity of names in arc (Paul Graham's hundred year language). Reading code in arc is very hard. Longer names, like

Clojure, Emacs and Slime on Windows

2008-11-11 Thread Kyle R. Burton
I've followed the straightforward instructions that BC put together: http://bc.tech.coop/blog/081023.html It worked flawlessly under Linux. I have lispbox installed on a windows machine and have been trying to get it to work on that platform as well. Emacs + slime + clisp does work. I

PATCH: Make name accept String

2008-11-11 Thread Drew Raines
I may be missing some philosophical significance of the name function, but is there any reason why it can't work on Strings as well as Named-s? user= (name :foo) foo user= (name foo) foo This would clean up conditionals I have scattered about where I normalize heterogeneous collections of

Re: newbie: can clojure do ...

2008-11-11 Thread Chouser
On Tue, Nov 11, 2008 at 9:30 AM, Graham Fawcett [EMAIL PROTECTED] wrote: If you did choose to go the static-HTML route, then you could export a table of contents in JavaScript, and let each page use this table to determine which pages precede and follow it. So if you have pages like:

Re: Readable names

2008-11-11 Thread stefano
What does everyone else think? I strongly prefer short names for frequently used functions/macros. Short names often let you avoid to break a line of code, but they could be quite cryptic. If they're used often, their meaning will become obvious with time. It's not a problem if it's not

Re: Readable names

2008-11-11 Thread Mark H.
On Nov 11, 1:17 am, Albert Cardona [EMAIL PROTECTED] wrote: Perhaps one way to do that would be to have a higher-order doc function, that replied with keywords belonging to it. For example, a mock-up call for Maps:   (doc Maps) Maps are this and that, and can be manipulated with:  

Re: (string?) bug

2008-11-11 Thread Dave Newton
--- On Sun, 11/9/08, Brian Doyle wrote: Yes, it is a StringBuilder so technically yes. I guess you since the only thing you ever do with a StringBuilder is produce a string it just seemed like it would be a string. Same goes for StringBuffer. I'd say create your own (stringish? ...)

Re: (string?) bug

2008-11-11 Thread Brian Doyle
Yep, I'm going that route. Thanks On Tue, Nov 11, 2008 at 2:27 PM, Dave Newton [EMAIL PROTECTED] wrote: --- On Sun, 11/9/08, Brian Doyle wrote: Yes, it is a StringBuilder so technically yes. I guess you since the only thing you ever do with a StringBuilder is produce a string it just

Re: newbie: can clojure do ...

2008-11-11 Thread Graham Fawcett
On Tue, Nov 11, 2008 at 12:59 AM, Daniel Spiewak [EMAIL PROTECTED] wrote: Sounds like you're wasting your time trying to get this working with just static HTML pages. I think that it's possible, but you would have to do a lot of really nasty javascript hackery to make the button targets

Re: Bio

2008-11-11 Thread Mike DeLaurentis
That's great, thanks! On Mon, Nov 10, 2008 at 11:15 PM, Rich Hickey [EMAIL PROTECTED] wrote: On Nov 10, 9:38 pm, Mike DeLaurentis [EMAIL PROTECTED] wrote: Hi Rich, I'm giving a talk about Clojure tomorrow night in Philadelphia for a functional programming user group, and I'd like to

Re: Why are symbols resolved when a function is defined?

2008-11-11 Thread mac
On 11 Nov, 06:24, Paul Barry [EMAIL PROTECTED] wrote: In Common Lisp and Scheme, if you have an expression that evaluates a symbol, it doesn't evaluate it until you call the function, not when you define it.  So you can do this: Common Lisp: [1] (defun b () a) B [2] (defvar a 5) A [3]