DSchroer / dslcad

DSLCad is a programming language & interpreter for building 3D models.
https://dslcad.com
GNU Lesser General Public License v2.1
470 stars 14 forks source link

Need better way to import multi part files #20

Closed DSchroer closed 8 months ago

DSchroer commented 1 year ago

Currently the way to bring in a multi part file as a single part is as follows:

reduce ./footing() as a,b:
    a ->left union(right=b);

This needs a cleaner way to pull it in.

zignig commented 1 year ago

I think the use syntax from rust to pull in symbols and modules would be very flexible and consistent.

P.s. cool project, once I get my head around the code base I will add some examples.

DSchroer commented 8 months ago

Closing this as resolved. I changed how multi parts and the type system works. Now list of parts can be treated as either a list or a single part so there is no need to union them. They will automatically be connected if put through an operation that requires it.