• 0 Posts
  • 39 Comments
Joined 2 years ago
cake
Cake day: July 8th, 2023

help-circle

  • It makes perfect sense actually. I did write another comment here if you are interested.

    This is how operator overloads were written going back to the initial version of C++ back in 1985. The only new thing is that we can now add = default to get the compiler to generate a default implementation that compares all the member variables for you.


  • Maybe to a non C++ dev, but a lot of C++ is probably incomprehensible to a non C++ dev, just like there are other laguages that are incomprehensible to C++ devs. To me it makes perfect sense as it works just like all the other operator overloads.

    auto - let the compiler deduce return type

    operator<=> - override the spaceship operator (pretty sure it exists in python too)

    (const ClassName&) - compare this class, presumably defined in Class name, with a const reference of type Class name, i.e. its own type.

    const - comparison can be made for const objects

    = default; - Use the default implementation, which is comparing all the member variables.

    An alternate more explicit version, which is actually what people recommend:

    auto operator<=>(const ClassName&, const ClassName&) = default;

    if I just want to have less than comparison for example I would:

    This one makes it explicit that you’re comparing two Class name objects.

    if I just want to have less than comparison for example I would:

    auto operator<(const ClassName&, const ClassName&) = default;

    If I need to compare against another class I could define: auto operator<(const ClassName&, const OtherClass&)





  • These are only damning comments if you have the news that Biden’s presidency had been a disaster. So of course Republicans and their news would write negative articles and a Democratic news source would show it as Harris having worked with Biden to get things done.

    Nothing to see here really, all Biden said I’d say that they work together for a common goal.

    Isn’t politics all about coming together, making compromises and try to agree what’s best for the country?

    For those who attack Fox news as a source they have a point, you won’t get factual news from there, it will be very skewed to the right and they will make a story out of nothing for clicks.


  • The 1960s had political engagement and division, no one’s denying that.

    However it was surpassed in 2020 which was a record year for turnout of 66.8% of eligible voters. Specifically, 90.6% of eligible women were registered, and about 68.4% of them actually voted. Women outpaced men in both categories. Young voters, especially young women, were a big part of that surge.

    Trump lost big then, imagine now with all the news about record registrations how much he might lose by now. Personally I think it would be very funny to see Harris break 100M vores,. Can you imagine how angry Trump would be :)




  • I went from using slackware late 90s early 00 to Mac OSX in early/mid 00. When coming back to Linux late 00 early 10s I was so disappointed in the Linux distros. I tried Ubuntu but was very disappointed in the lack of newer versions of third party software in their repo. Tried Arch for a while and while packages were up to date, every now and then the OS updates would mess something up and I had to start troubleshooting.

    It might be better now, but I eventually gave up and went to FreeBSD about 10 years ago. Stable base and separate up to date third party feels like the best of both worlds. Not sure if any llinux distro offers something like that now. No snap, no flatpack, just a base os and up to third party date packages.




  • If I were to speculate…

    • There are people in some countries that eat dogs and cats.
    • Someone’s neighbour’s sister friend said they saw someone with a dead cat with the intent to eat it.

    Therefore immigrants are regularly stealing other people’s pets and are eating them.

    We can extrapolate this with anything.

    • There are people that poop their pants.
    • There are reports of Trump wearing diapers and smelling liken poop.

    I think ww can draw our own conclusion about this one…