Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <blockquote> <p>I'm an experienced C++/.NET/Java Windows/Web programmer trying to learn (Common) Lisp. I'm reading Practical Common Lisp and using SLIME.</p> </blockquote> <p>One can also use the <a href="http://www.lispworks.com/downloads/" rel="nofollow">LispWorks Personal Edition</a> for learning Lisp. It has some limitations and the full product is commercial, but it is quite a bit easier to use.</p> <blockquote> <p>I get the REPL, but don't quite get how I can use it effectively. When I need to change a function I have to retype the defun and make changes (tedious and error prone). How can I do this better?</p> </blockquote> <p>The REPL has a history. With keyboard commands you can get back prior input and change it. Other than that just edit a Lisp file and compile code from there. In Lisp you can compile/eval individual expressions and definitions. Typical IDEs like SLIME, <a href="http://en.wikipedia.org/wiki/LispWorks" rel="nofollow">LispWorks</a> or <a href="http://en.wikipedia.org/wiki/Allegro_Common_Lisp" rel="nofollow">Allegro CL</a> allow you to run code also from normal Lisp text windows - additionally to executing expressions in the REPLA (aka Listener).</p> <blockquote> <p>How do I get from entering code at the REPL to actually having a program? I'm used to the C model where you have code files that you can review, edit and recompile. I know Lisp has something similar (via the load function), but how does one get a function I just defined and tested into a file to be saved? I'm hoping there's a better method than my current select+copy+paste.</p> </blockquote> <p>Copy and paste in one thing. But the correct way is to work from a text file in an editor window. One can compile/load expressions, the editor buffer or the associated file.</p> <blockquote> <p>How do you debug errors? Is there any ability to step into code like I would with other languages?</p> </blockquote> <p>See STEP, TRACE and related. SLIME, LispWorks and Allegro CL have lots of additional features.</p> <blockquote> <p>As long as the S-expression is valid, I don't get any errors when entering a (defun ...). It's not until I try to use it that I find out it's not valid. Is there any way to get errors sooner (i.e. compile the code)?</p> </blockquote> <p>For many cases one uses a compiler. The compiler will find a range of errors and also will note when something is unusual (for example a function does not exist or a variable has not been defined).</p> <p>-Is there some IDE that would be more familiar to me or allow me to play with the language easier?</p> <p>LispWorks, Allegro CL are the best under Windows. There are some alternatives like <a href="http://en.wikipedia.org/wiki/Corman_Common_Lisp" rel="nofollow">Corman Lisp</a> (I don't know it is maintained right now) or even Ufasoft Lisp.</p> <blockquote> <p>Should I switch to learning Scheme instead?</p> </blockquote> <p>Not really.</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload