Ignore backtick characters to make squiggle objects also valid javascript objects. #755
Closed
NunoSempere
started this conversation in
Squiggle Improvement Proposal
Replies: 1 comment
-
|
I'm pretty hesitant to ignore backticks; I'd rather have Squiggle use them for something. This approach feels fairly wrong to me. There are a lot of ways we could import functionality from JS, this seems pretty hacky. |
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.
Uh oh!
There was an error while loading. Please reload this page.
-
Consider the following javascript object:
Then if the backticks (`) are ignored, this is also a valid squiggle program.
Suggestion: Ignore backticks in squiggle so that things like the above are possible.
Pros: Hierarchical models like the above are marginally easier to work with
Cons: Not sure how to add this to peggy + backticks become unavailable for future functionality
Importance: Low
Beta Was this translation helpful? Give feedback.
All reactions