Add features to offer using conditional expressions ?: over explicit if-statement flows.#26236
Conversation
|
@CyrusNajmabadi , thank you! I prefer reviewing such great PR using CodeFlow not just browser view. However, CodeFlow supports up to 64 commits and the current PR contains 114 ones. Do you see any options to squeeze or to split the PR? Thanks! |
That's problematic. I often branch off of these PRs, and squeezing/squashing things ends up making life very painful across those branches :( |
|
Let me see if there's anything i can pull out here... |
|
Darn... i'm not seeing anything conducive to pulling out. I kept this PR pretty self contained. @KirillOsenkov Do you know why CodeFlow has a 64 commit limit? Is htat something that can be changed? |
|
Actually, i guess i could make a squashed PR from anotehr branch and have you review that. i'd then make the changes here and merge that back into the other branch. let me try that out. |
|
It’s not a CodeFlow problem, it’s GitHub rate limits. |
|
@ivanbasov can you sign off on this one? |
|
@KirillOsenkov That's a pity. Could it lazily be pulled in in the BG at some acceptable rate? |
|
@jinujoseph Can this be merged in? @ivanbasov signed off on #26572 which is the squashed version of this. That was create for him because of codeflow issues. However, i would like to merge this in as i have several downstream branches and it will be a pain if they have to deal with the rebased/squashed PR. |
|
Approved to merge for 15.8.Preview2 ( once ivan signs of) |
|
@ivanbasov can you sign off plz? Thanks! |
|
@ivanbasov @jinujoseph for merging. |
|
Thank you very much, @CyrusNajmabadi, for you help! |
Note: this PR depends on #25865. It should not be reviewed until that dependent PR is reviewed.
For example, with:
We offer:
Todo:
?:expression.if-statements withreturnstatements in their bodies.For the last one, this means recognizing:
and offering to convert to:
[jcouv edited] Fixes #26539