Matthias Krüger
b3c5caf0f5
Rollup merge of #138435 - eholk:prefix-yield, r=oli-obk
...
Add support for postfix yield expressions
We've been having a discussion about whether we want postfix yield, or want to stick with prefix yield, or have both. I figured it's easy enough to support both for now and let us play around with them while the feature is still experimental.
This PR treats `yield x` and `x.yield` as semantically equivalent. There was a suggestion to make `yield x` have a `()` type (so it only works in coroutines with `Resume = ()`. I think that'd be worth trying, either in a later PR, or before this one merges, depending on people's opinions.
#43122
2025-03-20 22:34:01 +01:00
..
2024-11-27 07:18:25 -08:00
2024-04-29 11:34:22 +02:00
2024-02-22 16:04:05 +00:00
2024-02-22 16:04:04 +00:00
2024-06-06 20:39:54 +00:00
2024-02-22 16:04:04 +00:00
2024-11-27 07:18:25 -08:00
2024-02-22 16:04:04 +00:00
2024-02-22 16:04:04 +00:00
2024-02-22 16:04:04 +00:00
2024-02-22 16:04:04 +00:00
2024-10-11 20:38:43 +02:00
2024-10-11 20:38:43 +02:00
2024-10-11 20:38:43 +02:00
2024-10-11 20:38:43 +02:00
2024-02-22 16:04:04 +00:00
2024-02-22 16:04:04 +00:00
2024-02-22 16:04:04 +00:00
2024-02-22 16:04:04 +00:00
2024-02-22 16:04:05 +00:00
2024-02-22 16:04:04 +00:00
2024-02-22 16:04:04 +00:00
2024-02-22 16:04:05 +00:00
2024-02-22 16:04:04 +00:00
2024-02-22 16:04:04 +00:00
2024-02-22 16:04:04 +00:00
2024-02-22 16:04:04 +00:00
2024-02-22 16:04:04 +00:00
2024-02-22 16:04:04 +00:00
2024-02-22 16:04:04 +00:00
2024-02-22 16:04:05 +00:00
2024-02-22 16:04:04 +00:00
2024-02-22 16:04:04 +00:00
2024-02-22 16:04:04 +00:00
2024-02-22 16:04:04 +00:00
2024-02-22 16:04:04 +00:00
2024-02-22 16:04:05 +00:00
2024-02-22 16:04:04 +00:00
2024-02-22 16:04:05 +00:00
2024-02-22 16:04:04 +00:00
2024-02-22 16:04:04 +00:00
2024-02-22 16:04:04 +00:00
2024-02-22 16:04:04 +00:00
2024-02-22 16:04:04 +00:00
2024-02-22 16:04:05 +00:00
2024-02-22 16:04:04 +00:00
2024-02-22 16:04:04 +00:00
2025-03-14 09:45:41 +11:00
2025-03-14 06:29:24 +11:00
2024-06-04 14:19:42 -03:00
2024-02-22 16:04:04 +00:00
2025-03-10 02:04:26 +00:00
2025-02-24 14:31:19 +01:00
2024-02-22 16:04:05 +00:00
2024-02-22 16:04:04 +00:00
2024-02-22 16:04:04 +00:00
2024-02-22 16:04:04 +00:00
2024-07-06 14:24:20 +02:00
2024-02-22 16:04:04 +00:00
2024-02-22 16:04:04 +00:00
2023-01-11 09:32:08 +00:00
2024-02-22 16:04:05 +00:00
2024-02-22 16:04:04 +00:00
2024-02-22 16:04:04 +00:00
2024-02-22 16:04:04 +00:00
2024-02-22 16:04:04 +00:00
2024-02-22 16:04:05 +00:00
2024-02-22 16:04:04 +00:00
2024-02-22 16:04:04 +00:00
2023-01-11 09:32:08 +00:00
2024-02-22 16:04:04 +00:00
2024-02-22 16:04:05 +00:00
2024-02-22 16:04:04 +00:00
2024-02-22 16:04:04 +00:00
2024-02-22 16:04:04 +00:00
2024-02-22 16:04:04 +00:00
2024-02-22 16:04:04 +00:00
2024-02-22 16:04:04 +00:00
2024-02-22 16:04:04 +00:00
2024-02-22 16:04:04 +00:00
2024-02-22 16:04:04 +00:00
2024-02-22 16:04:04 +00:00
2024-02-22 16:04:04 +00:00
2025-03-05 22:37:53 +08:00
2025-03-14 12:21:59 -07:00
2024-02-22 16:04:04 +00:00
2024-08-18 19:46:53 +02:00
2024-02-22 16:04:04 +00:00
2024-06-07 09:08:59 +00:00
2024-02-22 16:04:04 +00:00
2024-02-22 16:04:04 +00:00
2024-02-22 16:04:04 +00:00
2024-09-11 12:14:35 +02:00
2024-02-22 16:04:04 +00:00
2024-02-22 16:04:04 +00:00
2024-02-22 16:04:04 +00:00
2024-02-22 16:04:04 +00:00
2024-02-22 16:04:04 +00:00
2024-02-22 16:04:04 +00:00
2024-02-22 16:04:04 +00:00
2024-02-22 16:04:05 +00:00
2024-02-22 16:04:04 +00:00
2024-02-22 16:04:04 +00:00
2024-02-22 16:04:04 +00:00