3 ms·
Show HN: ROX – a minimal language with explicit errors and no magic
- owlstuffing 8mo agoLooks like a decent start. No UDTs? Not on GitHub? AI generated?
- hedayet 8mo agohttps://github.com/taman-islam/roxlang https://github.com/taman-islam/roxlang
- anwar_nairi 8mo agoPromising! I like the tidy design. I think the "Control" menu is missing one explaination about how can one return a rox_result[T]. Also I tried to remove the error check ("if (isOk(res))"), and the compiler did not complained. You might 1. want to add a "match" operator to force handling errors and/or 2. tell the compiler to check for this unhandled error handling (your app may crash otherwise). I thought/brainstormed on 100% type safe language syntax a while ago, and for this reason I decided to only allow "repeat" for loops and "match" for conditionals. Keep up the good work!
- hedayet 8mo agoagreed that we should only allow unpacking the value of a rox_result[T] in a safe branch.