▲ | 6gvONxR4sf7o 14 hours ago | |
There's more to this that I'd absolutely love to see in a language, and I can't tell if rye supports. If you want an ergonomic `if` you need its scope aspects too. Consider this example
Critical parts of the ergonomics are thata) in each branch, we have everything in scope that comes from <beginning of the function> b) in <rest of the function>, we have everything in scope that was assigned or reassigned in the executed branch I'd love a language that supports programmable stuff like if, since I'm tired of python autodiff not handling `if` and `for`. But it would really need programmable scope stuff to still allow the ergonomic "scope effects" that make `if` and `for` blocks ergonomic. |