control flow: loops #281
Replies: 5 comments 7 replies
-
|
Should this be like... functional loops and conditionals? I feel like it would be useful for Squiggle code to have guaranteed termination |
Beta Was this translation helpful? Give feedback.
-
|
I'm pretty unsure here. I think conditionals are probably needed. Loops with control flow are more controversial; I'm not very sure here. We could try pushing loops off for a while. Control flow is tricky to reason about, because we need to decide how to treat distributions in different cases. |
Beta Was this translation helpful? Give feedback.
-
|
Agreed, I think loops and conditionals come up surprisingly little in practical models. I don't believe this is a priority |
Beta Was this translation helpful? Give feedback.
-
|
Please discuss |
Beta Was this translation helpful? Give feedback.
-
|
I think I'm happy to introduce |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Allow the user to write
conditionals andloops in squiggleEDIT: this is the loops issue. See
174forif.Beta Was this translation helpful? Give feedback.
All reactions