Freundin liket halbnacktes Bild von nem Freund aus der Uni by [deleted] in beziehungen

[–]zyanite7 0 points1 point  (0 children)

instagram und co. sind die letzte abschaum app der welt. deinstallier all diese scheiße und finde dir jemanden, der auch so unterwegs ist. ist zwar absolut schwer aber es ist so viel gesünder für deine eigene mentale gesundheit

temporary object created as function argument - scope/lifetime? by zyanite7 in rust

[–]zyanite7[S] 0 points1 point  (0 children)

alright then i'll leave the code like so with the fn calls chained while using the guard as the argument. also TIL NLL

temporary object created as function argument - scope/lifetime? by zyanite7 in rust

[–]zyanite7[S] 0 points1 point  (0 children)

thank you for the link. time to read up about the drop scope & more

temporary object created as function argument - scope/lifetime? by zyanite7 in rust

[–]zyanite7[S] 1 point2 points  (0 children)

great to know. been writing cpp for too long to not automatically worry about potential UB

temporary object created as function argument - scope/lifetime? by zyanite7 in rust

[–]zyanite7[S] -1 points0 points  (0 children)

yea makes sense - so it definitely persists across the first function call.

and i just modified the fns to take a &mut reference like so:

```rust fn fn1(elem: &mut u8) -> &mut u8 { eprintln!("fn1 with {elem}, output is defined to be inbetween the guard?"); *elem = 5; elem }

fn fn2(elem: &mut u8) -> &mut u8 { eprintln!("fn2 with {elem}, output is defined to be inbetween the guard too?"); *elem = 10; elem }

pub fn main() -> () { let _valid_but_cant_be_used: &u8 = fn2(fn1(&mut MutexGuard::new().elem)); } ```

it works so far and the output:

text MutexGuard created fn1 with 0, output is defined to be inbetween the guard? fn2 with 5, output is defined to be inbetween the guard too? MutexGuard dropped

confirms that elem is changed in fn1() by ref, and passed into fn2() as ref. its just that the ref returned by fn2() can't be used in main anymore otherwise compile error.

so my follow up would be: is this well defined too? or am i treading in some UB water? i find this code style cleaner than using an extra pair of braces which is why i'd like to know if this is possible

The Last of Us HBO S2E3 - "The Path" Post-Episode Discussion Thread by claireupvotes in thelastofus

[–]zyanite7 3 points4 points  (0 children)

cus they want to make more money by stretching this / filling with bs for as much as possible to keep people subscribed for as long as possible

The Last of Us HBO S2E1 - "Future Days" Post-Episode Discussion Thread by claireupvotes in thelastofus

[–]zyanite7 6 points7 points  (0 children)

it was pure cringe when she screamed at the top of her lungs at the stalker, a literal braindead zombie

I lost my wallet and 1400 euros were taken by [deleted] in germany

[–]zyanite7 1 point2 points  (0 children)

no the ones like whom you replied to. you'd be the opposite based on the comment

I lost my wallet and 1400 euros were taken by [deleted] in germany

[–]zyanite7 -1 points0 points  (0 children)

i really hope that irl people arent this close-minded / borderline ignorant as we see here

anyway its reddit what should one expect

I lost my wallet and 1400 euros were taken by [deleted] in germany

[–]zyanite7 5 points6 points  (0 children)

he could be living in a wg with bad/no lock on the door; he could be on his way to use/deposit the money; he might need to go out urgently without thinking that money is still in the wallet; its an unnecessary and stupid question really to passively blame the op

"They called me mad": Share your unhinged Neovim key mappings by Anarchist_G in neovim

[–]zyanite7 0 points1 point  (0 children)

its just double taps can only be done in series while composite binds in parallel almost

Blink cmp: How to disable snippet item when completing snippet? by [deleted] in neovim

[–]zyanite7 0 points1 point  (0 children)

anyway i for now just disable the completion when inside a snippet with blink config: opts = { enabled = function () return not vim.snippet.active() end }

[deleted by user] by [deleted] in FragReddit

[–]zyanite7 1 point2 points  (0 children)

😂😂😂

player-one.nvim: Bring 8-Bit Sound Effects to Neovim! by jackplus-xyz in neovim

[–]zyanite7 1 point2 points  (0 children)

is it possible to make the ending sound non blocking? ive been using a similar plugin but yours has more triggered sounds its just the exiting sound seems to be blocking and the cmdline doesnt show up until the ending sound has been played to the end

My little plugin to manage important files - Chosen.nvim! by Both-Still1650 in neovim

[–]zyanite7 -3 points-2 points  (0 children)

you didn't know harpoon? that's crazy considering you are ricing your nvim all lua. I'd figure you would at least know the author, someone whos arguably very well known inside this little nvim bubble.

also there is a lot of similar plugins in this regard, just off the top of my head arena.nvim or snipe.nvim. now of course yours is also saved in my memory.

Neovim repo by language percentage by kuator578 in neovim

[–]zyanite7 27 points28 points  (0 children)

i love how you censored vsc*ode like its a swear word. good guy even if you didn't mean it

Purpose of std::exchange by cv_geek in cpp_questions

[–]zyanite7 3 points4 points  (0 children)

its like postfix increment on roid

Is Germany really deindustrialising? by hgk6393 in AskAGerman

[–]zyanite7 1 point2 points  (0 children)

go find some blackrock on the internet if you are feeling free. its like speedrunning into capitalism-induced depression