-
Notifications
You must be signed in to change notification settings - Fork 56
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
V2 : ensure curryability of api #114
Comments
Copying a related discussion per @z3dev's request. I said:
https://plus.google.com/u/0/104998044612346770322/posts/V45KdQ2EQiq Edit: Once functions are normalized and curried, the same pipeline function could be used without modification. Currying would just make it more readable by explicitly grouping related args. |
I think there also needs to be a distinction between user APIs and system APIs. It should be straight-forward to write something at the user API level which lets people write That can translate into system calls which are equivalent to translate(circle({})) without any real difficulty. Or if they want pipelining, or to write a compiler, or to ... The system level API doesn't need to be user friendly, and user APIs don't need to be consistent or elegant -- just convenient. :) |
@deckar01 JSCAD V2 has been released, and I’m very interested in the possibilities of using the pipeline (above) with V2 functions. Have you tried anything with V2? |
I ended up making a wrapper module. I track https://github.com/deckar01/csg-curry It looks like the the latest release (0.7.0) was cut from master, so I'm not sure if it is V2. I pulled in the latest changes into my fork of |
@deckar01 the V1 code is frozen, including the CSG/CAG/etc classes. I would guess that changes might be required for V2. Here’s a summary of what’s different, which should help working with V2. https://openjscad.org/dokuwiki/doku.php?id=changes_v2 And of course, there are some special steps to develop changes for V2 as well. |
@deckar01 I looked over the pipeline code. Nice and simple. Do you think the pipeline would be useful as part of V2? |
No description provided.
The text was updated successfully, but these errors were encountered: