What is the use of '&' symbol ?

You have problems, and we're glad to hear them. Explain the problem, what you have tried, and where you got stuck.
Feel free to share a little info on yourself and the course.
Forum rules
Please respect your teacher's guidelines. Homework is a learning tool. If we just post answers, we aren't actually helping. When you post questions, be sure to show what you have tried or what you don't understand.

What is the use of '&' symbol ?

Postby sky_coder » Fri Nov 30, 2012 11:33 pm

I have been wondering what is the use of '&' symbol.

For example ...
Code: Select all
(defun abc ( attr goal &opt prior &aux (tree nil) )
...
 )
sky_coder
 
Posts: 1
Joined: Fri Nov 30, 2012 11:28 pm

Re: What is the use of '&' symbol ?

Postby nuntius » Wed Dec 19, 2012 12:20 am

Sorry for not replying earlier. In Lisp, "&word" is not the symbol "&" followed by "word", it is actually a single symbol name. The "&" has no special significance to the compiler; it is just something that stands out to the human reader.

Here's a list of common naming conventions. http://www.cliki.net/naming%20conventions
User avatar
nuntius
 
Posts: 497
Joined: Sat Aug 09, 2008 10:44 am
Location: Burlington, MA


Return to Homework

Who is online

Users browsing this forum: No registered users and 1 guest