Skip to content

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

@heavyk

Description

@heavyk

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions