Welcome

Discussion of Common Lisp

Welcome

Postby administrator » Fri Jun 27, 2008 11:28 pm

Well, I just got everything installed and set up. LispForum is now open for business. Please have a good time. :)
administrator
Site Admin
 
Posts: 1
Joined: Mon Jun 23, 2008 11:02 pm

Re: Welcome

Postby G-Brain » Sat Jun 28, 2008 6:36 am

Looking good so far :ugeek:

Image
G-Brain
 
Posts: 16
Joined: Sat Jun 28, 2008 3:48 am

Re: Welcome

Postby varuzza » Sat Jun 28, 2008 6:54 am

Maybe:

Code: Select all
 
  (defclass people ()
    ((ideas :accessor ideas :initarg :ideas)
     (fun :accessor fun :initarg :fun)))

  (defun lispforum (people)
    (list (ideas people) (fun people)))
varuzza
 

Re: Welcome

Postby malkia » Sat Jun 28, 2008 11:58 am

Here's a fix :)

Code: Select all
(defun lispforum (people)
  (declare (ignore people))
  (list 'ideas 'fun))
malkia
 
Posts: 8
Joined: Sat Jun 28, 2008 11:36 am

Re: Welcome

Postby findinglisp » Sat Jun 28, 2008 12:03 pm

Ha! Yes, indeed. I actually went through about 5 different little functions to try to find something that would work well with the aspect ratio that was used for the default phpBB logo. That was the best I could come up with. But yes, having a warning saying that people weren't used probably isn't what I was going for. In the spirit of Lisp, perhaps a high-order function is more appropriate:
Code: Select all
(defun lispforum (people)
    (funcall people 'ideas 'fun))
Cheers, Dave
Slowly but surely the world is finding Lisp. http://www.findinglisp.com/blog/
findinglisp
 
Posts: 440
Joined: Sat Jun 28, 2008 7:49 am
Location: Austin, TX

Re: Welcome

Postby findinglisp » Sat Jun 28, 2008 12:07 pm

Hmmm... Upon reading that quickly, I don't think funcall really works well. It sort of elicits a "funcall of you, too" sort of response. ;)

Maybe:
Code: Select all
(defun lispforum (people)
    (apply people '(ideas fun)))
Cheers, Dave
Slowly but surely the world is finding Lisp. http://www.findinglisp.com/blog/
findinglisp
 
Posts: 440
Joined: Sat Jun 28, 2008 7:49 am
Location: Austin, TX

Re: Welcome

Postby G-Brain » Sat Jun 28, 2008 12:35 pm

findinglisp wrote:Maybe:
Code: Select all
(defun lispforum (people)
    (apply people '(ideas fun)))


I like that! 8-)
G-Brain
 
Posts: 16
Joined: Sat Jun 28, 2008 3:48 am

Re: Welcome

Postby findinglisp » Sun Jun 29, 2008 7:34 am

All fixed. 8-)
Cheers, Dave
Slowly but surely the world is finding Lisp. http://www.findinglisp.com/blog/
findinglisp
 
Posts: 440
Joined: Sat Jun 28, 2008 7:49 am
Location: Austin, TX

Re: Welcome

Postby Wodin » Sun Jun 29, 2008 8:56 am

findinglisp wrote:But yes, having a warning saying that people weren't used probably isn't what I was going for.
I don't know about that. I thought using people was bad.
Wodin
 
Posts: 56
Joined: Sun Jun 29, 2008 8:16 am


Return to Common Lisp

Who is online

Users browsing this forum: No registered users and 3 guests