Emacs Hash Quote Function
emacs hash quote function
- let me tell u this one young man
- starting around 2010 or so, the elisp hacker fanatics, started to spread the idea, that function name when quoted should start with the number sign
- so you'd write
(define-key xah-lookup-prefix (kbd "y") #'xah-lookup-yandex)
(define-key xah-lookup-prefix (kbd "y") 'xah-lookup-yandex)
- the reason is, in emacs lisp, the hash apostrophe tells the elisp compiler that this symbol is a function, so when emacs byte compile it, it can compile it directly to function.
- but in my view, this behavior is catering to the machine and faaking human, a type of mentality that c, cpp, unix, types of faaakheads have.
- that is, these types of people, their mentality, in matters of choices of code, they pick whichever is beneficial to the machine, eg the compiler, the cpu, instead of human.
- and btw, vast majority of the elite hacker types r of this ilk. This is the situation of the industrial programer brain damage
- (as a example of contrast, the community that does scientific programing, or mathematicians, or functional programers, do not, have this mentality. their decision in code choice on this, tend to favor the human)
- this is why, i do not subscribe to adding the hash faaak in front of quoted function symbol.
- and the above, is one of the crème, unique, perspective u won't see in the coding industry.
- but usually when i speak on these matters, it's a waste of time, to the industrial programers.
- they no unstand, at all.
- and thus, c cpp rust they love.
- industrial know-nothingers, they r.
- however, starting few months ago, i started to add the number sign.
- because xah fly keys package is on free software foundation's repo since 2020 or so.
- once ur code is associated with an org or corp, u can't freely have ur choice of coding style, u have to follow certain convention of the org or corp.
- thus, in xah fly keys, i added the hashtag.
- (actually, i think it's first somebody else added it when the code first went in. i think it was stephen monnier, who was leading emacs for several years around 2015)
- u see, when in this situation, especially when someone you like, did this, u can't refuse it and stick with my own idiosyncracy.
what does the hashtag do?
- overall, the adding the # is a trivial matter.
- if u add it, the code will be maybe 5 microseconds faster.
- if u don't, the code is easier to read, less lang complexity.
- but the thing i object to, is the fucking industrial mindset idiots as i described above.
- that is, they do not know, r not aware, of the issue, or other perspective.
- in fact, many of these fuckheads, will simply think u a idiot, if u did not add the hashtag
- these ilk, like i said, r typically the c cpp rust type of fuckheads
- they do not understand what is computation.
- they only have a very narrowed view with obsession of compiler, memory, cpu, fucks.
- fuck these people.
- again, like i said, they do not understand things, yet, it is that they insist and telling others what to do, that tick off me.
- like, @basilides u r currently trying to say. lol
- but good natured.