<p>Depending on my mood I seem to waffle back and forth between wanting a Lisp-1 and a Lisp-2.  Unfortunately beyond the obvious name space differences, this leaves all kinds of amusing function name/etc problems you run into.  Case in point, trying to write some code tonight I tried to do (map #'function listvar) which, of course, doesn't work in CL, at all.  Took me a bit to remember I wanted mapcar, not map.  Of course it doesn't help when slime/emacs shows map IS defined as something, though obviously not the same function at all.</p>

<p>So, pointers on how to minimize this short of picking one or the other and sticking with it?</p>

[{'answer_id': 31603, 'author': 'Alasdair', 'author_id': 2654, 'author_profile': 'https://Stackoverflow.com/users/2654', 'pm_score': 4, 'selected': True, 'text': '<p><a href="http://www.lispworks.com/documentation/HyperSpec/Body/f_map.htm" rel="nofollow noreferrer">Map</a> is more general than mapcar, for example you could do the following rather than using mapcar:</p>\n\n<pre><code>(map \'list #\'function listvar)\n</code></pre>\n\n<p>How do I keep scheme and CL separate in my head? I guess when you know both languages well enough you just know what works in one and not the other. Despite the syntactic similarities they are quite different languages in terms of style.</p>\n'}, {'answer_id': 32289, 'author': 'Runevault', 'author_id': 3326, 'author_profile': 'https://Stackoverflow.com/users/3326', 'pm_score': 0, 'selected': False, 'text': "<p>I'm definitely aware that there are syntactic differences, though I'm certainly not fluent enough yet to automatically use them, making the code look much more similar currently ;-).</p>\n\n<p>And I had a feeling your answer would be the case, but can always hope for a shortcut &lt;_&lt;.</p>\n"}, {'answer_id': 38839, 'author': 'Kyle Cronin', 'author_id': 658, 'author_profile': 'https://Stackoverflow.com/users/658', 'pm_score': 0, 'selected': False, 'text': "<p>The easiest way to keep both languages straight is to do your thinking and code writing in Common Lisp. Common Lisp code can be converted into Scheme code with relative ease; however, going from Scheme to Common Lisp can cause a few headaches. I remember once where I was using a letrec in Scheme to store both variables and functions and had to split it up into the separate CL functions for the variable and function namespaces respectively.</p>\n\n<p>In all practicality though I don't make a habit of writing CL code, which makes the times that I do have to all the more painful.</p>\n"}, {'answer_id': 110843, 'author': 'Ryszard Szopa', 'author_id': 19922, 'author_profile': 'https://Stackoverflow.com/users/19922', 'pm_score': 2, 'selected': False, 'text': '<p>Well, I think that as soon you get enough experience in both languages this becomes a non-issue (just with similar natural languages, like Italian and Spanish). If you usually program in one language and switch to the other only occasionally, then unfortunately you are doomed to write Common Lisp in Scheme or vice versa ;)</p>\n\n<p>One thing that helps is to have a distinct visual environment for both languages, using syntax highlighting in some other colors etc. Then at least you will always know whether you are in Common Lisp or Scheme mode.</p>\n'}]
['https://Stackoverflow.com/questions/31561', 'https://Stackoverflow.com', 'https://Stackoverflow.com/users/3326/']