Search
Thursday, 17th of January 2019, 20:00:20 UTC
21:12:37
cqs
hello, is it possible to store something that my function returns into a variable?
21:13:14
dlowe
you mean like (let ((variable (my-function)))) ...)?
21:13:23
dlowe
or (setf something (my-function))?
21:13:43
dlowe
perhaps you'd like to join #clschool :)
21:13:43
cqs
actually i'm not sure what is the difference between those 2
21:14:18
cqs
i'm an empty page when it comes to lisp
21:14:41
aeth
cqs: the let creates a new binding, but setf in this context (or setq in general) sets an existing binding
21:15:27
aeth
cqs: so the let is basically "int foo;" or "int foo = 42;" and the setf is basically "foo = 42;"
21:15:53
aeth
except there's no type there so it's more like a language that uses "var" or "local" or even "let" rather than "int"
22:41:38
Fade
minion: tell cqs about PCL
22:41:38
minion
cqs: please see PCL: pcl-book: "Practical Common Lisp", an introduction to Common Lisp by Peter Seibel, available at http://www.gigamonkeys.com/book/ and in dead-tree form from Apress (as of 11 April 2005).
23:23:00
Lord_of_Life_
** NICK Lord_of_Life
0:01:02
cgay
ACTION reports grammar-o in the second paragraph of the intro.
0:01:33
cgay
MAKING THE WORLD BETTER THROUGH GRAMMAR
3:53:27
beach
Good morning everyone!
Friday, 18th of January 2019, 8:00:20 UTC