-
-
Notifications
You must be signed in to change notification settings - Fork 2.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
docs: update range for
: 0-based index rationale
#20617
Conversation
Added a note to the Range `for` section in the documentation to explain the rationale behind using exclusive range notation and zero-based indexing. From spytheman in Discord https://discord.com/channels/592103645835821068/592115457029308427/1194711919572033576, This update references Edsger W. Dijkstra's 'Why Numbering Should Start at Zero' to provide theoretical backing and clarity on this design choice.
Not sure if there is a formatter used for .md files. I don't think |
You can check before submitting changes with |
Thank you for the command @JalonSolov.
@StunxFS maybe just manually pushed that url down one line and didn't use any mechanism to check? |
Co-authored-by: Jose Mendoza <56417208+StunxFS@users.noreply.github.com>
Lines with links can now be longer (up to 250 characters currently, determined by |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Excellent addition.
Thank you. Maybe there is a certain length we should use for rule? Maybe |
It already does. |
Mhmm. Thanks @spytheman. Spose I need to look into this more to see how this works. Haven't had success making it give the above result from @StunxFS so I think I will just need to use my eyes when it doesn't catch something itself. I see a lot of mixed line lens. Some are over 100 chars and some are around 90. Maybe just eyeballing is the best to keep around similar surrounding contents. |
Added a note to the Range
for
section in the documentation to explain the rationale behind using exclusive range notation and zero-based indexing. From spytheman in Discord https://discord.com/channels/592103645835821068/592115457029308427/1194711919572033576, This update references Edsger W. Dijkstra's 'Why Numbering Should Start at Zero' to provide theoretical backing and clarity on this design choice.