Open flwyd opened 3 years ago
Thanks for so carefully reading the documentation and bringing up all these suggestions! I'll look at the rest of these later. Always feel free to up a pull request! In some cases it may be easier to just change it instead of writing an explanation.
id
attribute based on the section title. Emoji in that title are replaced with-
. This results in multiple HTML elements with the sameid
when a section header doesn't have any ASCII text. This makes fragment links to that section impossible. For example,<h3 id="-">π </h3>
and<h3 id="-">π βͺοΈ</h3>
conflict for the fragment in https://www.emojicode.org/docs/reference/controlflow.html#-step
. The first comment says "Prints numbers 0 through 8 (including)" but it actually only prints the even numbers (0 2 4 6 8). The100 -10 -10
example might be more illustrative if it were100 -15 10
which would (a) help convey that the second argument is the end and the third is the step and (b) illustrate the surprising behavior whenabs(end - start)
is not a multiple ofstep
(the range seems to go fromstart
toend - step
inclusive, rather than fromstart
toend
exclusive).(Code observations based on
Emojicode-1.0-beta.2-Darwin-x86_64
.)