On Mon, 25 Aug 2025 11:12:53 GMT, Stefan Karlsson <stef...@openjdk.org> wrote:

>> Kim Barrett has updated the pull request incrementally with one additional 
>> commit since the last revision:
>> 
>>   dholmes tweaks
>
> doc/hotspot-style.md line 1481:
> 
>> 1479: ## Excluded Features
>> 1480: 
>> 1481: ### Structured Bindings
> 
> FWIW, there was a recent discussions about memory APIs in `os::` that 
> returned both a size and an error code. I'm a little bit intrigued to see if 
> Structured Bindings would have been able to give us slightly more cleaner 
> call-site code. I'll still my curiosity after the support for C++17 is in.

I've followed that discussion. Yes, Structured Bindings would provide some
syntactic concision for that use-case. I think the last paragraph in the
discussion of this feature applies. That is, the syntactic concision doesn't
outweigh other factors (at least in the opinion of some). Also, I think there
are better approaches for error reporting, and I'm feeling motivated to work
on something in that direction.

-------------

PR Review Comment: https://git.openjdk.org/jdk/pull/26884#discussion_r2299149389

Reply via email to