▲ 344 ▼ rustmas (thelemmy.club) submitted 9 months ago by somerandomperson@lemmy.dbzer0.com to c/programmerhumor@lemmy.ml 11 comments fedilink hide all child comments
[–] hades@feddit.uk 99 points 9 months ago (8 children) can you explain the joke, i work at cloudflare permalink fedilink source hideshow 8 child comments replies: [–] mkwt@lemmy.world 46 points 9 months ago (5 children) Rust has many container-like objects that may or may contain a value, like Box. Most of these have an unwrap() method that either obtains the inner value or panics the whole application. permalink fedilink source parent hideshow 5 child comments replies: [–] locuester@lemmy.zip 34 points 9 months ago Box is a bad example; it always has a value and can’t be unwrapped. It’s Result and Option that are the primary wrappers. Result is for Errors, and Option is for nullables. If you consider it that way, the “issues” with unwrap are identical to other languages when errors and nulls aren’t properly handled. permalink fedilink source parent [–] boonhet@sopuli.xyz 16 points 9 months ago I reckon the person you're replying to knows exactly what unwrap is, because the last big famous Cloudflare outage was caused by it. They were making a joke of their own permalink fedilink source parent [–] littleomid@feddit.org 13 points 9 months ago Whoosh permalink fedilink source parent [–] expatriado@lemmy.world 10 points 9 months ago (1 child) sounds like an error handling issue permalink fedilink source parent hideshow 1 child comment replies: [–] brandon@piefed.social 16 points 9 months ago Yes it is. Typically you'd do some pattern matching to handle every possible case, but Unwrap is often used as a shortcut. permalink fedilink source parent [–] wewbull@feddit.uk 13 points 9 months ago i work at cloudflare I shouldn't worry about it. permalink fedilink source parent [–] CanadaPlus@lemmy.sdf.org 12 points 9 months ago i work at cloudflare Thank you for the easier captchas, and pre-emptively damn you for whatever evil thing CloudFlare will eventually do with their MITM access to everything. permalink fedilink source parent
[–] mkwt@lemmy.world 46 points 9 months ago (5 children) Rust has many container-like objects that may or may contain a value, like Box. Most of these have an unwrap() method that either obtains the inner value or panics the whole application. permalink fedilink source parent hideshow 5 child comments replies: [–] locuester@lemmy.zip 34 points 9 months ago Box is a bad example; it always has a value and can’t be unwrapped. It’s Result and Option that are the primary wrappers. Result is for Errors, and Option is for nullables. If you consider it that way, the “issues” with unwrap are identical to other languages when errors and nulls aren’t properly handled. permalink fedilink source parent [–] boonhet@sopuli.xyz 16 points 9 months ago I reckon the person you're replying to knows exactly what unwrap is, because the last big famous Cloudflare outage was caused by it. They were making a joke of their own permalink fedilink source parent [–] littleomid@feddit.org 13 points 9 months ago Whoosh permalink fedilink source parent [–] expatriado@lemmy.world 10 points 9 months ago (1 child) sounds like an error handling issue permalink fedilink source parent hideshow 1 child comment replies: [–] brandon@piefed.social 16 points 9 months ago Yes it is. Typically you'd do some pattern matching to handle every possible case, but Unwrap is often used as a shortcut. permalink fedilink source parent
[–] locuester@lemmy.zip 34 points 9 months ago Box is a bad example; it always has a value and can’t be unwrapped. It’s Result and Option that are the primary wrappers. Result is for Errors, and Option is for nullables. If you consider it that way, the “issues” with unwrap are identical to other languages when errors and nulls aren’t properly handled. permalink fedilink source parent
[–] boonhet@sopuli.xyz 16 points 9 months ago I reckon the person you're replying to knows exactly what unwrap is, because the last big famous Cloudflare outage was caused by it. They were making a joke of their own permalink fedilink source parent
[–] expatriado@lemmy.world 10 points 9 months ago (1 child) sounds like an error handling issue permalink fedilink source parent hideshow 1 child comment replies: [–] brandon@piefed.social 16 points 9 months ago Yes it is. Typically you'd do some pattern matching to handle every possible case, but Unwrap is often used as a shortcut. permalink fedilink source parent
[–] brandon@piefed.social 16 points 9 months ago Yes it is. Typically you'd do some pattern matching to handle every possible case, but Unwrap is often used as a shortcut. permalink fedilink source parent
[–] wewbull@feddit.uk 13 points 9 months ago i work at cloudflare I shouldn't worry about it. permalink fedilink source parent
[–] CanadaPlus@lemmy.sdf.org 12 points 9 months ago i work at cloudflare Thank you for the easier captchas, and pre-emptively damn you for whatever evil thing CloudFlare will eventually do with their MITM access to everything. permalink fedilink source parent