Haskell-Things / Haskell-Things/ImplicitCAD

openscad quasiquote

Open
#480 2 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
1.6k
Forks
148
PR merge metrics
No merged PRs in 30d

Description

I like `circle($fn=6)`, but I don't see it in [the haskell api](https://hackage.haskell.org/package/implicit-0.4.1.0/docs/Graphics-Implicit-Primitives.html#v:circle). While it is possible to encode such optional arguments in haskell, I think a quasiquoter would be better.

```haskell
hex1 d = [scad| circle(d, $fn=6) |] -- too light
hex2 d = [scad2d| circle($$d, $fn=6) |] -- too heavy
hex3 d = [scad| circle($(d), $fn=6) |] -- just right?
```

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.