-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Confusion about Instances{peano}: document reasoning behind Instances0, Instances1, .. #997
Comments
@aaronlevin thank you for bringing this up. I agree that we need to properly document this (probably in the contributing guidelines, because end-users shouldn't have to worry about it). This is exactly the sort of thing that I was referencing in #996 (comment) :). I don't have time to put together proper documentation for this this week. A quick example I can point to is #538. Before that (once I switch around the order of the type parameters to match the order they are in now), |
@ceedubs oh, wow, thanks for the explanation! I am happy to try and write something up if you can point me to where in the docs this would go! |
@aaronlevin thank you for volunteering to write something. Sorry that I didn't get back to you for a while. My delay was because I'm not sure exactly what to say. For a long time we have had this TODO in the contributor guide. I don't like the idea of having a humongous contributor guide that might be intimidating for new contributors. But I also don't want to leave people guessing or send them down too many separate links. Maybe we could have that part of the contributing guide link to a reference document describing detailed code conventions? I'm really open to ideas here. |
@aaronlevin I'm coming back to this ancient issue. There is now a bit of information about this in the guidelines doc. What do you think? Should we close this issue out or do you think that the info should be more detailed? |
I submitted my first, albeit small PR just now. One thing that confused me was the presence of traits like:
XInstances0
,XInstances1
,XInstances2
, etc. I understand the existence ofXInstances
but why are they spread over the naturals like that?This gave me a little anxiety when I was submitting my first PR because I wanted to ensure I put my first instance in the right place. I have no idea where my instance resides in the peano hierarchy of random instances, nor, given my scala experience, could I infer why things were designed this way.
Suggestions:
I hope that's clear. Also, I'm so curious to find out the history behind this!
The text was updated successfully, but these errors were encountered: