Note that there are some explanatory texts on larger screens.

plurals
  1. POLearning Common Lisp tips for a Windows/C++ programmer
    primarykey
    data
    text
    <p>I'm an experienced C++/.NET/Java Windows/web programmer trying to learn (Common) Lisp. I'm reading <a href="http://en.wikipedia.org/wiki/Practical_Common_Lisp" rel="nofollow">Practical Common Lisp</a> and using <a href="http://en.wikipedia.org/wiki/SLIME" rel="nofollow">SLIME</a>.</p> <p>I'm getting the Lisp language easily enough, but I'm having trouble groking the mechanics of development. One of my issues is dealing with Emacs. I have no experience with it and find it generally confusing with hard to find/figure out commands.</p> <p>Specific questions:</p> <ul> <li>I get the <a href="http://en.wikipedia.org/wiki/Read-eval-print_loop" rel="nofollow">REPL</a>, but I 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?</li> <li>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.</li> <li>How do you debug errors? Is there any ability to step into code like I would with other languages?</li> <li>As long as the S-expression is valid, I don't get any errors when entering a <code>(defun ...)</code>. 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)?</li> <li>Is there some IDE that would be more familiar to me or allow me to play with the language easier?</li> <li>Should I switch to learning <a href="http://en.wikipedia.org/wiki/Scheme_%28programming_language%29" rel="nofollow">Scheme</a> instead?</li> </ul> <p>Any tips would be greatly appreciated!</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.
 

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