Repository navigation
Conversation
asgerf
force-pushed
the
unified/shorthand-returns
branch
2 times, most recently
from
October 21, 2026 06:38
c1d2b1d to
20991fc
Compare
asgerf
force-pushed
the
unified/shorthand-returns
branch
from
October 22, 2026 09:37
20991fc to
14d2cd8
Compare
asgerf
force-pushed
the
unified/shorthand-returns
branch
from
October 22, 2026 09:41
14d2cd8 to
a3cdc86
Compare
asgerf
force-pushed
the
unified/shorthand-returns
branch
from
October 22, 2026 09:54
a3cdc86 to
65001f0
Compare
This branch has not been deployed
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.
Implements data flow support for Swift's short-hand returns.
When the body of a function consists of a single expression that resolves to a value, that value is implicitly the return value of the function. For example,
is the same as
This is currently implemented on the QL side as the desugaring rule can't be implemented nicely with Yeast, but we might want to desugar it in the future, when Yeast offers better support for subtype checks.