Replies: 1 comment
-
|
We have this now! |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
JS has decent type coercion.
I think in the case of Squiggle, we could do a lot of this with the
makesyntax.String.make(t)-> Converts any type to string.SampleSet.make(t)-> If t is a dist, makes it from that. If t is a list of numbers, makes the list of numbers.PointSet.make(t)-> If t is a dist, make from that.Dict.make(plot)-> Converts plot arguments into a dict. Also, works for other objects that are basically just records/dicts.Beta Was this translation helpful? Give feedback.
All reactions