Search
1:07:10
NotThatRPG
** NICK NotThatRPG_away
9:56:50
rendar
let's consider this impl of eval() in python: https://github.com/fluentpython/lispy/blob/main/mylis/mylis_3/evaluator.py
9:57:00
rendar
can we say that this evaluator contains both eval+apply ?
9:58:34
jackdaniel
if I understand correctly the code then no
9:58:56
jackdaniel
apply works like (apply [foo] a-list-with-arguments)
9:59:33
jackdaniel
foo takes as many arguments as there are on the list supplied
9:59:50
jackdaniel
on the other hand (funcall [foo] a-list-with-elements) calls foo with exactly one argument
10:00:17
rendar
hmm, i see.. can i ask you why are you using [ ] for foo?
10:00:55
jackdaniel
for no particular reason; just to make the function distinct from other arguments