-
-
Notifications
You must be signed in to change notification settings - Fork 1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Functors are maps for categories #217
Comments
I think of this repo as a resource for those not steeped in FP to learn what unfamiliar terms mean. That means that although there have to be some cross-references, these definitions should mostly stand on their own. How would you cast this suggestion into language which supports that? Right now, it seems to me that the Functor section meets this. How would you add Categories and Arrows to that definition without making it too complex for FP beginners? Note that I think this would be quite challenging, but I'd be thrilled to be proven wrong. Do you have a suggested rewording of the section? (This applies to several other recent suggestions you've made as well. But perhaps we could start here.) |
Oh, if I had concrete suggestions for improving wording, I would open a PR. I wouldn't do that to you, just opening issues without planning to eventually resolve them. My main concern is that the given definitions of "category" and "functor" do not actually line up; we should expect that a "functor" is a map between "categories", but that is not the case. The underlying issue here (and in other issues I've opened) is that there are two situations where a category shows up in a programming context:
There's no commonly-accepted jargon or nomenclature for this distinction. We might argue that the latter categories are "internal categories", and then by analogy we might call the former category the "external category" for a given language. Then, the main problem is easy to state: the repo currently documents internal categories and external functors. Worse, the external functors are limited to endofunctors, but the limitation isn't justified. |
I still think most of this is beyond the scope of this document. The category-theoretical view is interesting, but I think it's mostly a distraction here. However I'm mostly just a viewer here and not a core contributor; someone closer to the work may disagree.
That is absolutely true, and I think there should be examples of other functors. Even |
The central idea behind a functor is that it is a map between categories; for every arrow in the source category, the functor designates an arrow in the target category, such that identity and composition (the algebraic laws for categories) are preserved. This central idea isn't covered.
The text was updated successfully, but these errors were encountered: