Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

discussion: why not make the things safe instead of marking them unsafe? #178

Open
heavyk opened this issue Feb 22, 2024 · 0 comments
Open

Comments

@heavyk
Copy link

heavyk commented Feb 22, 2024

it seems to me that I'd like to make abstractions which remove the need to type "unsafe" -- thereby making it safe, or acceptable.

to challenge myself, I decided to open the 2048 example and go through that...

gg          &gg.Context = unsafe { nil } // perhaps 'uninit' instead?

nevermind ... so disclaimer here, I've never programmed v before, and I have no idea really. this just looked like a fun discussion to put. I'm sure there are many other great solutions.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant