40ants / lisp-project-of-the-day

Here I'll post notes about Quicklisp projects. Also I publish them on Twitter account svetlyak40wt.
http://40ants.com/lisp-project-of-the-day/
BSD 2-Clause "Simplified" License
51 stars 6 forks source link

0105-clack: extract env argument from call #44

Closed santiagopim closed 2 years ago

santiagopim commented 3 years ago

While reading your analisys of the clack project I did'nt figure how to extract the env argument from the function call. This is how I got it. Merge as you consider.

Thank you for your awesome work.

svetlyak40wt commented 2 years ago

Hi @santiagopim. Excuse me for the late reply. I've missed your pull-request.

Don't think it is good idea to merge it as is, because the purpose of the article is not to demonstrates a possible ways of accessing ENV variable. For example, you might enter (break) form inside the setf and to inspect ENV with debugger.

Also, you will have to remove such use of a global variable from the production code.