Skip to content
This repository was archived by the owner on Feb 25, 2025. It is now read-only.

Conversation

@flar
Copy link
Contributor

@flar flar commented Apr 12, 2022

We've apparently had access to this C++ feature for a while, but have been using ad-hoc comments to document/manage our initializations of the PaintContext and PrerollContext. Using the designated field initializers ({ .field = val, ...}), the initializers are self-documenting and could even be pared down to the bare minimum of fields that are required.

I did not pare down any existing initializers, but the added unit tests demonstrate just how minimal the initializer lists can be.

Copy link
Contributor

@dnfield dnfield left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

waiting for tree to go green This PR is approved and tested, but waiting for the tree to be green to land.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants