New feature in scope-capture, what should I call it?


#1

I’m developing a new ‘spying at a distance’ feature in the scope-capture library:

I’m using the names :sc/only-from and sc.api/calling-from for this new feature in the API, but I’m not too happy about them. Do you have better suggestions?

By the way, do you find the documentation for this feature clear?


#2

Cool! I think the documentation is clear and reads ok to me.
I think naming is not bad either, if I was to suggest anything (don’t know if better) it would be: when-called-from instead of only-from
It reads well, as in “spy when called from” and echoes the naming of the calling form which I would just have as call-from maybe?
Cheers!


#3

I would use the same name in both the function and the keyword, makes it easier to remember. Suggestions :

  • spy-when
  • telescope (love that one)