techhub.social is one of the many independent Mastodon servers you can use to participate in the fediverse.
A hub primarily for passionate technologists, but everyone is welcome

Administered by:

Server stats:

4.8K
active users

Sal Rahman

Someone else did a full rewrite of their application from Go to Rust, and are seeing much fewer bugs.

Not a surprise since Rust does not have nullable values. reddit.com/r/rust/comments/16v

@manlycoffee Interesting. Not to try to correct but Go does not have nullabe/nillable values either, it has pointers that are used for both passing by reference AND making the variable/field "nullable" which IMO leads to problems, where one mixes up whether that's a pass-by-reference or a nullable field. Edit: actually my view is not strong on nullable fields, maybe the problems they solve are better solved in other ways. Probably so...

@varfrog closest that I came to solving this problem is to wrap pointer types into a custom container struct purely to hold a value or null.

Eliminates a lot of nil dereferencing programmer mistakes, but doesn't eliminate them completely.