What's the convention for using an asterisk at the end of a function name in Clojure and other Lisp dialects?

后端 未结 4 698
轻奢々
轻奢々 2021-02-01 02:03

Note that I\'m not talking about ear muffs in symbol names, an issue that is discussed at Conventions, Style, and Usage for Clojure Constants? and How is the `*var-name*` naming

4条回答
  •  日久生厌
    2021-02-01 02:41

    In Clojure it basically means "foo* is like foo, but somehow different, and you probably want foo". In other words, it means that the author of that code couldn't come up with a better name for the second function, so they just slapped a star on it.

提交回复
热议问题