quantified-uncertainty / squiggle

An estimation language
https://squiggle-language.com
MIT License
148 stars 22 forks source link

try() function #3137

Closed berekuk closed 3 months ago

berekuk commented 3 months ago

Fixes #3108.

changeset-bot[bot] commented 3 months ago

🦋 Changeset detected

Latest commit: 978658cd98e3aa625f4f9ac3bb1adf86ac0bfbe9

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 6 packages | Name | Type | | ----------------------------------- | ----- | | @quri/squiggle-lang | Patch | | @quri/squiggle-components | Patch | | @quri/prettier-plugin-squiggle | Patch | | @quri/versioned-squiggle-components | Patch | | vscode-squiggle | Patch | | @quri/squiggle-textmate-grammar | Patch |

Not sure what this means? Click here to learn what changesets are.

[Click here if you're a maintainer who wants to add another changeset to this PR](https://github.com/quantified-uncertainty/squiggle/new/try-catch?filename=.changeset/eighty-pants-bow.md&value=---%0A%22%40quri%2Fsquiggle-lang%22%3A%20patch%0A---%0A%0Atry()%20function%0A)

vercel[bot] commented 3 months ago

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated (UTC)
quri-hub ✅ Ready (Inspect) Visit Preview Mar 29, 2024 2:57am
quri-ui ✅ Ready (Inspect) Visit Preview Mar 29, 2024 2:57am
squiggle-components ✅ Ready (Inspect) Visit Preview Mar 29, 2024 2:57am
squiggle-website ✅ Ready (Inspect) Visit Preview Mar 29, 2024 2:57am
OAGr commented 3 months ago

Fairly basic - but as you know, I'm a fan of iterating in lots of steps! So, kudos for finding a way to get a lot of the value with minimal functionality.

Can improve later. I might change the Generics issue, but can do that later.