libera/#lisp - IRC Chatlog
Search
5:50:18
lieven
VioletJewel: the body of a dotimes is an implicit tagbody so no need for the progn. in fact, most places where it makes sense in CL are implicit progns so you will not need progn except for advanced stuff.
6:37:00
VioletJewel
yep. I saw that I hadn't reverted that after. I was trying to actually get the program to run. There were some rather unhelpful lisp errors
6:38:21
lieven
somewhat more controversially, if you're not doing much validation, (parse-integer (read-line)) can be replaced by read.
6:58:32
VioletJewel
I got it even simpler. and .. oki .. I'll try to keep that in mind. http://sprunge.us/UzFhne?lisp
6:59:59
VioletJewel
thanks :) I suppose that is a good enough first lisp program that actually does something
7:06:57
lieven
yeah it's an interesting use of the format arcana. it's a cute embedded mini language but I always have to look up the more exotic modifiers.
7:17:10
VioletJewel
to be honest, I'm not quite sure how it works even after reading the help for ~{ and the prefix variations. I think I kind of broke it :D
7:21:44
VioletJewel
maybe it has to do with the ~:* inside of the ~@{ ... ~} ... I'm not super sure. I feel like ~@{ ... ~} should consume all of the arguments, but heh. What do I know?
7:25:19
VioletJewel
wow. okay that is it. ~* ignores next arg. ~:* backs up list (by one or n in ~n:*) to be reprocessed. amazing hehe
7:50:18
VioletJewel
I hope I am satiated for now. http://ix.io/4rWu/lisp Thanks again for the helps. I have learned a good deal :)
7:51:30
VioletJewel
oh yeah.. is it bad to use (or maybe-optional-var (read)) effectively? more succinct function?
9:22:02
VioletJewel
hmm. yep I read that earlier - ie, (defun fun (&optional (a <default> a-p)). I will use. One more question, though. How can you print a string (without a newline) without format but also without the double quotes?
9:23:06
VioletJewel
or is there a way to ... either escape the input for ... I'm dumb. (format t "~a" the-string)
9:44:10
VioletJewel
http://ix.io/4rWQ/lisp lisp is more fun than I thought. I am going to make a lisp interpretter thingy in C
10:55:46
VioletJewel
annnnd buildapp for actually building progs (with arguments). weee. okay. time-a get coffee and do work things. yay for insomnia. thanks a lot, liev. Sorry for spam