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

-=Dark_Angel=-, P.I. 3-Mar-05/2:05 PM
What about it? For a start, you plainly don't actually program in Lisp. No actual Lisp programmer puts end brackets on separate lines. And you haven't exploited Lisp's homoiconic (lol) nature at all, which is the only reason to use Lisp. Also, commenting the end of control structures is quaint, but pointless, and only seen in textbooks.

Furthermore, "hunger" is a terrible name for a function. Hunger is a thing. You can't "do" hunger. And Christ alone knows what 'fulfill-desires' does. Whatever it is, it evidently doesn't involve satisfying hunger, as that's taken care of in "hunger". And you don't use any function parameters, or declare any local variables. All your variables are global. They fail. You fail.

Aside from its bulbous demerits as a program, it's an utter swellington as a poeme. And that ain't good. -10-




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