• 0 Posts
  • 94 Comments
Joined 1 year ago
cake
Cake day: July 3rd, 2023

help-circle





  • expr@programming.devtoProgrammer Humor@lemmy.mlI love Rust
    link
    fedilink
    arrow-up
    10
    arrow-down
    1
    ·
    1 month ago

    Don’t need the Ord instance for equality, just Eq is sufficient. Ord is for inequalities.

    The point of the post is that most mainstream languages don’t provide a way to automatically derive point-wise equality by value, even though it’s pervasively used everywhere. They instead need IDEs to generate the boilerplate rather than the compiler handling it.








  • expr@programming.devtoMicroblog Memes@lemmy.worldLine go up
    link
    fedilink
    English
    arrow-up
    5
    ·
    edit-2
    2 months ago

    No, there are many different kinds of stocks with different terms. Stocks are an asset with value, regardless of whether or not dividends are paid out. It’s very commonly the case for shares to be issued with no dividends paid because profits are reinvested back into the company with the goal of increasing the share price for some future massive liquidation event (like an acquisition).

    Shares also represent ownership in a company and thus their value is also in the leverage it can give potentially give you in said company.



  • It makes a lot of sense for very rural living: you need a defense against the wild, and possibly hunting for food. I fully support that.

    The general desire among Democrats is stricter regulation, which is a very reasonable thing. People should be required to prove that they can be a responsible gun owner and are mentally fit to own one. I shouldn’t be able to pick one up from the sporting goods store like it’s a bag of potato chips. It is an incredibly powerful tool and can easily kill others. It should be treated as such.