On Fri, Oct 1, 2021 at 4:48 PM Dmitry Gutov <dgutov@yandex.ru> wrote:
On 01.10.2021 17:40, João Távora wrote:
Certain language designers intentionally limit the language's power due
to usability considerations, keeping in mind their audience.
What languages, what evidence for this? Anyway, many more limit the power
due to performance considerations. Counts as "usability"? I guess. IME
language audiences that are interested in performance usually don't
care so much
about ergonomics and vice versa.
Go would be one example. The reasoning lies largely in the field of
usability. Their understanding of it, at least.
Yes Go, I see what you mean. But it's been growing with new features,
like generic functions. And has namespaces. They didn't design it
around grep, that's for sure. That's what I meant.
Taking the example from the manual, the clients would be able to write
;; elisp-shorthands: (("snu" . "some-nice-string-utils"))
but not
;; elisp-shorthands: (("sn" . "some-nice"))
and that doesn't sound like a terrible limitation.
I agree. We could make it a recommendation, i.e. issue a (stern)
warning when we
detect this. Or not allow shorthands of other forms in Emacs code, ELPA, etc.
But
possible, yes. Would you like to work on that `thing-at-pt.el` front?
thing-at-pt? I'm not sure which particular task you are referring to.
thingatpt.el, sorry. The library used by other Elisp programs when they
want to pick some text from the buffer, at point, that represents a symbol,
a string, a list. We could have some kind of "symbol-prefix" "symbol-suffix"
or "symbol-part" for eventually telling grep to go search only for that part.