RodrigoZepeda / d3lisp

A d3js interface for creating plots in LISP
https://rodrigozepeda.github.io/d3lisp/index.html
MIT License
3 stars 0 forks source link

Proposal: setf instead of setq #9

Closed Symbolics closed 5 years ago

Symbolics commented 5 years ago

Generally setq is only seen these days in emacs and setf is the generally accepted 'best practice' in setting variables in common lisp.

References: Gigamonkeys chapter on variables Reddit discussion on clisp subreddit Stackoverflow discussion on difference in the set* operators

This proposal would replace all occurrences of setq with setf

RodrigoZepeda commented 5 years ago

I now use let in most of the examples (setf is not well defined for new variables across different implementations). Setq is now gone from the code.