Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Experiment with a Lensy API #14

Open
joe-warren opened this issue Nov 27, 2024 · 0 comments
Open

Experiment with a Lensy API #14

joe-warren opened this issue Nov 27, 2024 · 0 comments

Comments

@joe-warren
Copy link
Owner

There are a bunch of functions in Waterfall CAD which could be implemented as optics.

Being linear transforms, all of the functions in Waterfall.Transforms could be implemented as isomorphisms.

You could also write Lenses that use one Solid to "mask off" part of another (such that solidA ^. (mask solidB) == solidA `intersection` solidB).

I've tried to keep simplicity in mind in the design of the Waterfall API, so I'm not sure I'm keen to add Optics to itl; but I do think it'd be worth exploring this space.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant