You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Dec 7, 2024. It is now read-only.
After seeing @tlively's presentation today, I offhandedly suggested using else to allow a feature-block to have an alternative. I think it would be somewhat elegant to generalize features_block ... end to feature.if [block_type] ... else ... end. Thus it would look a lot like a regular if, but the true block would be a binary blob that would not be decoded if the feature set is not supported.
We would have to decide what to do with block_type in the else block. One option would be to have a completely alternate type for else or to have the same block_type, but with alternative types substituted in.
The text was updated successfully, but these errors were encountered:
Actually, now that I think about it, it is almost certainly needed to have an alternative type for the else, because it might not be possible to decode the block type at all if the feature isn't supported.
What would the benefit of this approach be over having feature_block decode as an unreachable? I would expect the unbundled feature_block to offer slightly more control flow flexibility to producers but otherwise be mostly identical.
After seeing @tlively's presentation today, I offhandedly suggested using
else
to allow a feature-block to have an alternative. I think it would be somewhat elegant to generalizefeatures_block
...end
tofeature.if [block_type]
...else
...end
. Thus it would look a lot like a regularif
, but the true block would be a binary blob that would not be decoded if the feature set is not supported.We would have to decide what to do with
block_type
in theelse
block. One option would be to have a completely alternate type forelse
or to have the sameblock_type
, but with alternative types substituted in.The text was updated successfully, but these errors were encountered: