Skip to content

docs(overview): drop two low-value bullets from "what's not in the language" - #83

Merged
vito merged 4 commits into
mainfrom
docs-feedback-overview-exceptions-not-absence
Jun 4, 2026
Merged

vito merged 4 commits into
mainfrom
docs-feedback-overview-exceptions-not-absence

Conversation

@vito

@vito vito commented Jun 4, 2026 •

Copy link
Copy Markdown
Owner

Trims the "What's not in the language" list on /overview down to the
broad, orienting absences.

A reader flagged the errors bullet:

no exceptions for control flow — raise/try/catch exist but are deliberate, not flow control

This is confusing - how could something that the USER decides whether to do be "not in the language"?

They're right that it's miscategorized — exceptions are in the language; not
using them for flow is a design stance, not an absence. Rather than reword it,
we cut it: the errors page already leads with exactly this point. The adjacent
no implicit scalar coercion bullet goes too — a narrow detail better left to
the types page, not a mental-model seed.

The section keeps the genuinely broad absences (no inheritance,
no metaprogramming / macros).

🤖 Generated with Claude Code

A reader noted the "no exceptions for control flow" bullet was confusing
under "What's not in the language" — exceptions do exist, and using them
for control flow is the user's choice, not something the language forbids.
Reword to describe the design stance honestly: errors exist, but return
and null-tracking cover the cases you'd otherwise reach for them, so they
stay reserved for genuine failures.

Signed-off-by: Alex Suraci <[email protected]>
@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented Jun 4, 2026 •

Copy link
Copy Markdown

vito added 2 commits June 4, 2026 15:31
The previous rewrite re-explained return and null-tracking, repeating the
errors topic page and breaking the section's "plant seeds, don't repeat
topic pages" guidance. Shrink it back to seed altitude — set the
expectation and defer detail to the errors page.

Signed-off-by: Alex Suraci <[email protected]>
The parenthetical (TypeHint form, fromJSON/fromYAML materialization) was
compiler-internals detail wedged into a mental-model list, and the
json-yaml page already covers materialization. Keep the expectation seed
and the one essential qualifier, and point the cross-ref at the types
page where `::` is actually documented.

Signed-off-by: Alex Suraci <[email protected]>
@vito vito changed the title docs(overview): reframe errors-vs-control-flow bullet docs(overview): tidy two bullets in "what's not in the language" Jun 4, 2026
Neither earns a spot in the mental-model list. "errors aren't control
flow" is a design stance the errors page already leads with, and implicit
scalar coercion is a narrow detail better left to the types page. Cut
both so the section stays to the broad, orienting absences.

Signed-off-by: Alex Suraci <[email protected]>
@vito vito changed the title docs(overview): tidy two bullets in "what's not in the language" docs(overview): drop two low-value bullets from "what's not in the language" Jun 4, 2026
@vito
vito merged commit 7c31b08 into main Jun 4, 2026
5 of 6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant