-
Notifications
You must be signed in to change notification settings - Fork 972
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
Make spec more declarative #942
Comments
BTW, I disagree with the label "presentation" here. I believe if there is a description and it conflicts with the code, then the human-readable description should win. Yes, I know, I am old-fashioned on this one ;) |
I agree that what's "reasonable" in an intuitive human sense should win over formalized code/specs. I think the purpose of the "presentation" label is that you're not proposing substantive changes to the spec, but rather changes to how the spec is presented. Tagging changes this way is good because client devs know that they don't have to worry about keeping up with it, because if their old way of implementing things is correct it will stay correct. |
OK, I would agree if this is how "presentation" should is defined. Would still be interested if people agree that more human readable definitions should be added to the spec, if so I would be making a first attempt for the containers to see where it leads. Of course, this leads to more lines at the same level of complexity :) |
On a long flight without Wifi, I finally had the time to read the whole current beacon chain document. I noticed that to mentally decode many parts of the spec, I had to cross-reference many different sections, because the meaning of objects is often not clear from their definition.
What I am suggesting is that each object/data type/etc. should contain a declarative description of its content. As an example
currently has no human-readable description. I have to read the code to understand what it does. The code might have edge cases and I have to figure out whether these are handled as intended, or might constitute bugs. I would suggest to add a comment like this:
If we do this, we get a couple of advantages:
The text was updated successfully, but these errors were encountered: