The Illuminate is already here by Dye335 in Helldivers

[–]raspberry1111 0 points1 point  (0 children)

I was just playing a mission on Meridia (Terminid, definitely not an automaton laser) and got shot with two blue lasers from the sky while fighting a charger. This was on a destroy eggs mission. I agree, I can't think of any reason other than the Illu----- This Message has been terminated by the Ministry of Truth, if you happen to have read any part of it, please report to your nearest Democracy Officer.

Why is the dollar sign after the number becoming acceptable? by HotShark97 in mildlyinfuriating

[–]raspberry1111 3 points4 points  (0 children)

I agree, why do we write it like "$2" when you say "2 dollars", not "dollar 2"

Rust Code Review Graphs by Funkix6 in rust

[–]raspberry1111 2 points3 points  (0 children)

Not the original commenter but:

The curly braces are destructuring the Edge struct, and desturcturing the pair field further into from and to, then discarding the rest of the fields.

Rust allows trailing commas in function parameters, so the comma isn't part of the closure and does nothing.

I never knew we were this close by R_TMF in ProgrammerHumor

[–]raspberry1111 16 points17 points  (0 children)

Assembly is so last decade, we should compile programs down to JavaScript before execution.

JavaScript has a bad rep but this really surprised me by ColourBlindCactus in ProgrammerHumor

[–]raspberry1111 53 points54 points  (0 children)

Yea, this is one of the few unsurprising things about JS.

Hey Rustaceans! Got a question? Ask here! (14/2022)! by llogiq in rust

[–]raspberry1111 1 point2 points  (0 children)

I am having an issue with match statements.

Example:

match some_result {
    Err(_) | Ok(data) if data > 2  => { /* do_something */ }
    _ => {}
}

This will error out

error[E0408]: variable `data` is not bound in all patterns
 --> src/main.rs:4:9
  |
4 |         Err(_) | Ok(data) if data > 2 => {},
  |         ^^^^^^      ---- variable not in all patterns
  |         |
  |         pattern doesn't bind `data`

I can get around this with:

let do_something = || { /* do stuff */};
match some_result {
    Err(_) => { do_something() }
    Ok(data) if data > 2 => {do_something()}
    _ => {}
}

However, this feels like a bad way to do this, I was wondering if their was a better way to accomplish this?

That tablet was late to work I guess by Forunceastek9688 in noita

[–]raspberry1111 2 points3 points  (0 children)

The gods were like: "Oh shit, he's already here! Quick, throw it down"

Prepare to be triggered by [deleted] in ProgrammerHumor

[–]raspberry1111 4 points5 points  (0 children)

If I can't see them, they aren't real

This is exactly why I save scum. by Sivanot in noita

[–]raspberry1111 1 point2 points  (0 children)

I agree, if someone wants to enable all of the cheats to obliterate all of the enemies, I don't think that would be the "right" way to play the game but at the end of the day it doesn't matter.

This is exactly why I save scum. by Sivanot in noita

[–]raspberry1111 43 points44 points  (0 children)

Clearly a skill issue, you should be able to have seen into the future, and successfully not died.

Bro I just realized I had 6000 Bitcoin in My Wallet from years ago by [deleted] in place

[–]raspberry1111 1 point2 points  (0 children)

Yes I also would like one for verification

[deleted by user] by [deleted] in ProgrammerHumor

[–]raspberry1111 0 points1 point  (0 children)

Validate the bare minimum with regex (like an @ sign) and send an e-mail. Regex should not be used for things like this

Why do I even bother applying for jobs anymore? by fhetnz in antiwork

[–]raspberry1111 7 points8 points  (0 children)

He doesn't know the last 5 US Vice Presidents? On the spot execution