|
-
Jun 1st, 2023, 03:18 PM
#11
Re: TwinBasic
 Originally Posted by Niya
Yes this is very much true. This is EXACTLY why Rust exists. The borrow checker in Rust and all that comes with it is their way of removing undefined behavior from memory operations without a performance penalty. If I'm being perfectly honest, I this Rust's approach is far better suited to BASIC than raw C-like pointers. It's very much in line with BASIC's tendencies towards being a safe language.
The issue here is that 99% of the use case for this is interacting with the Windows API-- i.e. the things you see wrapped in unsafe in Rust. I searched for examples of doing some simple things with shell interfaces like I typically do in Rust, unsafe unsafe unsafe unsafe....
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|