@nank1ro I’m actually working on an API design lately that also struggles with the lack of union types. The way I mitigated verbosity (.fixed) is to have two sets of ctors. In your case, add another named ctor, say `Opacity.signal` that take signal props, keeping the current unnamed ctor.
@nank1ro ... which we likely still have lots of rooms to improve.
(Also totally agree on union types. It's quite a frustrating limitation for API design right now.)
@nank1ro To me, the biggest takeaway is that this design shines for games and apps with massive, high-freq leaf updates, but actually has much smaller impact on typical business-app structures than I expected. It seems that standard apps still lean heavily on const-ness,
@passsy Thank you for your understanding (and for the issue)! I had been annoyed by this bug for years and it’s amazing how fixing it the right way uncovered several other similar bugs that had been around since forever, such as a whole test suite not being actually run. :D
@mahersafadii Slightly correction: It’s not because the PR is massive, but the project is massive. Sometimes changes of small LOC can have massive impact and thus must be discussed thoroughly, for example bumping the minimal version of Android. Similar for this one.
@jezell@mahersafadii Splitting into smaller PRs and steps is also for the convenience of reviewing. Writing something new is hard, and reviewing them is even harder, because reviewers are the last guardians of code correctness. It’s important that reviewers really approve (cont.)
@jezell @mickrich384 @mahersafadii We had to write pages of design docs as well. And it’s becaude they really help. I wrote design docs for almost all big projects of mine, and I only regret the cases when I did not write enough - the keyboard was not discussed thoroughly and admittedly it didnt turn out well
@RydMike@mahersafadii@luke_pighetti In my algorithm, assume it has equal x radii and y radii, if 2 r_x >= width, then the width sides are circular arcs. The y sides continue to be continuous rounded borders. (Basically the x and y sides are separated/stitched together.) I'm pretty sure this is how Swiftui works.