Earlier quoted context omitted.
http://tryhaskell.org/
Thanks for that. The missing link here is having the tutorial and the editor together for the maximum user benefit. What would be really cool is if the online copy of RWH had this editor embedded in it. What would be even cooler is if it had some basic menu features that allowed you to save module files, compile them and execute them along with the HUGS/GHCI integration.
Try Clojure
41–50 of 63 posts
Re: Try Clojure
#42When hitting the up arrow it should go to the last line, not the first.
Re: Try Clojure
#43That's cool, only thing left now; in the tutorial, change the color scheme (from black on darkgray) to something a little more legible, and make the examples clickable, so I don't have to retype them in the repl.
Re: Try Clojure
#44Man that teddy bear scares me off, I'd hate to make a typo and crash someones server. What kind of precautions against newbie messes are there ?
Licenser (Heinz) and I have another project called clj-sandbox that provides sandboxing for try-clojure and sexpbot in #clojure. You're safe.
And I'd hate to cause a melt-down :)
Re: Try Clojure
#45Without emacs and its plethora of hellspawn requirements for a decent clojure environment, I just don't feel comfortable!! Grats on a nice web-based repl though :)
Yeah, yesterday I decided I wanted to do something with Lisp again, and I figured that Clojure was the hot new kid on the block, so I should use that, and now it's tonight and I still don't have SLIME hooked up to Clojure, presumably because there's no actual guide to anything, and any howto that anybody made is guaranteed to be out of date almost before they post it. Clojure is really appealing otherwise, though, as…
http://www.assembla.com/wiki/show/clojure/Getting_Started_wi...
The Assembla wiki is a recent attempt at fixing problem of finding up-to-date 'getting started' documentation for Clojure.
Re: Try Clojure
#46Re: Try Clojure
#47(map if [true false true] [1 1 1] [2 2 2])
not that I can think of any reason why you'd want to do that (specifically) but Picolisp, Factor, REBOL and I'm sure a couple other languages implement if as a normal function. To take an example from some edition of programming clojure:
(defmacro unless [expr form] (list 'if expr nil form))
in factor:
: unless ( ? quote -- ) swap [ drop ] [ call ] if ; inline
no macro needed to futz with if's.
Does it have any advantages or is it just one of those things that "that's just how it's always been"?
Re: Try Clojure
#48This isn't really a Clojure specific question but is there any benefit to making 'if' a special form? Meaning you can't do: (map if [true false true] [1 1 1] [2 2 2]) not that I can think of any reason why you'd want to do that (specifically) but Picolisp, Factor, REBOL and I'm sure a couple other languages implement if as a normal function. To take an example from some edition of programming clojure: (defmacro unles…
Re: Try Clojure
#49This isn't really a Clojure specific question but is there any benefit to making 'if' a special form? Meaning you can't do: (map if [true false true] [1 1 1] [2 2 2]) not that I can think of any reason why you'd want to do that (specifically) but Picolisp, Factor, REBOL and I'm sure a couple other languages implement if as a normal function. To take an example from some edition of programming clojure: (defmacro unles…
(if x big_expensive_expression y)
than (funcall (if x (lambda () big_expensive_expression) (lambda () y)))Re: Try Clojure
#50This isn't really a Clojure specific question but is there any benefit to making 'if' a special form? Meaning you can't do: (map if [true false true] [1 1 1] [2 2 2]) not that I can think of any reason why you'd want to do that (specifically) but Picolisp, Factor, REBOL and I'm sure a couple other languages implement if as a normal function. To take an example from some edition of programming clojure: (defmacro unles…
Well, it's actually impossible to write if as a function in Clojure.