Repository navigation
docs(overview): drop two low-value bullets from "what's not in the language" - #83
Merged
Merged
Conversation
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]>
Deploying dang with
|
| Latest commit: |
5e477c7
|
| Status: | ✅ Deploy successful! |
| Preview URL: | https://779c90c7.dang-3kk.pages.dev |
| Branch Preview URL: | https://docs-feedback-overview-excep.dang-3kk.pages.dev |
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]>
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]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Trims the "What's not in the language" list on
/overviewdown to thebroad, orienting absences.
A reader flagged the errors bullet:
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 coercionbullet goes too — a narrow detail better left tothe types page, not a mental-model seed.
The section keeps the genuinely broad absences (
no inheritance,no metaprogramming / macros).🤖 Generated with Claude Code