Replies: 3 comments 4 replies
-
This sounds good to me. |
Beta Was this translation helpful? Give feedback.
-
I like your proposal. I originally worked this out when changing the syntax boxes in 2021, but whenever I looked at the callbacks specifically I wasn't quite happy with it. I wanted to make this beginner friendly but this part indeed got long and repetitive. Context from 2021: Happy to review a PR against the guidelines and to use parameters as you propose. https://developer.mozilla.org/en-US/docs/MDN/Writing_guidelines/Page_structures/Syntax_sections#callback_syntax_blocks |
Beta Was this translation helpful? Give feedback.
-
Was this issue raised for only JavaScript? or the entire repo? API pages are still using the old style e.g. |
Beta Was this translation helpful? Give feedback.
-
Consider this Array method syntax box:
This is extremely long, repetitive, and hard to maintain. Furthermore, we don't use this pattern in other places where a callback is accepted:
Is it possible that we stop expanding all callback syntaxes, but instead use parameter descriptions?
This needs updates to the syntax guideline.
cc @mdn/yari-content-javascript
Beta Was this translation helpful? Give feedback.
All reactions