4 ms·
[I am not an ARC expert] Symbols in many lisp dialects are case insensitive and user names are almost certainly symbols. In Common Lisp [and I'm not an expert
by brudgers 14y ago
[I am not an ARC expert] Symbols in many lisp dialects are case insensitive and user names are almost certainly symbols. In Common Lisp [and I'm not an expert in it either]:*
> (eql Gertig gertig)
T
>(symbol-value gertig)
"Gertig"
>(symbol-value Gertig)
"Gertig"
The API query may do something equivalent to:
>(get-symbol-having-value "Gertig")
GERTIG
>(get-symbol-having-value "gertig")
NIL
Of course, I'm pulling this completely out of my ass just because it's interesting to think about. Somebody more familiar with the code base will have no trouble recognizing that.
*Since Scheme, from which Arc, is derived is also case insensitive, I suspect the Arc is:
> (is Gertig gertig)
t
However, case insensitivity is not explicitly covered in the Arc tutorial. http://ycombinator.com/arc/tut.txt http://ycombinator.com/arc/tut.txt