209
Deltarule
(lemmy.world)
Be sure to follow the rule before you head out.
Rule: You must post before you leave.
RWIIR!!!
edit: here, I did it for you:
edit 2: fixed it
Oh no….
const mut...
I like to live
unsafe
If you made it static, sure, but right now you're living compiler error
oh well, I'm just starting to learn the language and come from java, so I thought: wait, it can't be static
const is more like C++ constexpr, but static is similar to static from C: it's a variable that lives outside any scope. Of course, that means the same static can be accessed by multiple threads, so writing to a static is unsafe (except for types like Mutex, you can safely use those to write, but your static won't be declared mut)
I personally would have matched the
sucked
... Maybe printed some lovely message about being content or somezhin