| ▲ | gpm 5 hours ago | |||||||
It's possible to detect and ban the version of the problematic pattern that I made as short and simple as possible to illustrate the point, sure. I'm general though, I don't believe it is practical to do so. Not without every library being designed with the checker in mind and annotated to more precisely describe their APIs. Which is why I'm not surprised to see the limitations.md that seems to exclude all the hard cases (aliasing, pointers used as first class values, cross function analysis): https://github.com/ityonemo/clr/blob/main/LIMITATIONS.md#mem... Obviously if you rewrite the zig world to obey rust like rules and include rust like annotations you can implement a rust like borrow checker, but I don't think that it would still be meaningfully zig. It might be an interesting language worth exploring. | ||||||||
| ▲ | dnautics 3 hours ago | parent [-] | |||||||
did you miss this part? > planned to be addressed i have in mind a strategy to address all of them. this is a side project, a proof of concept, i have other things going on in my life. i dont chip away at it every week. you make, without any evidence ("Obviously"), an assertion that "it would look like another language". so far if anything applying zig clr would push a user to write more idiomatically ziggy code, away from idiomatically c-ish code. i dont see why continuing with clr wouldn't go further along that trend. so consider what is "obvious" to you might just be flat out wrong. > It might be an interesting language worth exploring. worth how much? youre welcome to sponsor my exploration and put your money where your mouth is: | ||||||||
| ||||||||