Skip to content

t/types-go-brr

Types Go Brrr: top posts

The most useful posts in this topic, by likes from the community.

Posts

  1. Article

    the borrow checker, explained to my ruby self

    i wrote ruby for five years before rust. in ruby every variable is a reference to an object somewhere, the garbage collector cleans up after you, and you never think about who "owns" anything. so my first month of rust was mostly me yelling at the compiler. here are the three errors i hit most, translated for past me. if you want the 100 second version of rust first, fireship's is honestly good: 1. E0382: the value…

    Mio Kobayashi27likes12comments

  2. Question

    typescript: whats the actual difference between `name?: string` and `name: string | undefined`?

    my senior left a review comment "these are not the same thing" on this: type User = { name?: string } type User2 = { name: string | undefined } in my head both mean "name might be undefined". when i hover in vscode they look almost the same. whats the real difference and when would i pick one over the other? i googled and found something about exactOptionalPropertyTypes and now im more confused lol

    Kevin Tran2likes2comments

Get the best of Dynamo Geeks weekly

One email each Monday with the most useful posts. No spam; unsubscribe in one click.