27 ms·
This is also one of my major complaints at this point. I'm building a developer tool with starklark resting at its core and I had already came across your work.
by jcmfernandes 2y ago
This is also one of my major complaints at this point. I'm building a developer tool with starklark resting at its core and I had already came across your work.
I wish the starklark team had addressed it at this point.
- mahmoudimus 2y agoWe solved this by introducing a Result library. load("@.../result", result=result) def throw(arg): return 1/0 if result.Result(throw).map(arg).is_ok: # proceed else: fail("...")
- ajayvk 2y agoI wrote up the approach I used at https://clace.io/blog/errors/ https://clace.io/blog/errors/, started a discussion at https://news.ycombinator.com/item?id=42370488 https://news.ycombinator.com/item?id=42370488 since it could apply outside of Starlark also