Replying to a comment on:

Hunger 2 (Programming) by Dovina

;LISP (defun hunger ;This time do it, and forget ;your silly “syntax error” ;and “bad data type.” (while hungry (if food ;if it’s offered (smell) (taste) (eat) );end if food );end while hungry ;eventually you will get full (search-desires) (fulfill-desires) (hunger) ;Now go back ;to the start ;and don’t complain. ;Keep looping. ;It’s all you get. );end defun hunger

Dovina 3-Mar-05/4:23 PM
Thank you for a remarkable commentary on my poem, my ability as a LISP programmer, and on LISP itself. Particularly interesting is your pointing out that all of my variables are global since they are not defined locally. I suppose you are right since no variables are used in the hunger function - not locally as they would be with (defun hunger eat sleep crap . . .) or somesuch, nor are any global variables assumed by not being so defined. So that tells me about how much you know about LISP.

Also, it is very common for a programmer to comment on a close paren, especially if several lines separate it from its open paren. As you may not know, every open paren in LISP must be followed eventually by a close paren which completes the command. Placing the close paren on a new line with a comment telling which open paren it closes is therefore good practice and makes the code easier to maintain.

I tried to keep the program simple, avoiding parameter passing and uncommon commands that manage linked lists, coordinate searches and the like, but I see it is not simple enough.

Of course nobody can dispute your expertise in swellington poemes and your ability to determine failure in all things poetic and LISP.




Track and Plan your submissions ; Read some Comics ; Get Paid for your Poetry
PoemRanker Copyright © 2001 - 2024 - kaolin fire - All Rights Reserved
All poems Copyright © their respective authors
An internet tradition since June 9, 2001