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.
-
Allow the user to write
conditionals andloops in squiggleEDIT: this is the loops issue. See
174
forif
.Beta Was this translation helpful? Give feedback.
All reactions