[–] [S] 2 points 1 week ago

I don't really know myself, probably the many footguns and complexities. Like taking a reference to a value in a vector and then resizing the vector, boom undefined behaviour. There a re a lot of things like this. Maybe also the verbosity and multie ways to do things. Look at the linked code, there is a lot of overhead to the function definitions, sure there is a point to all of it and I put it there for a reason, but to people less familiar to the language it is probably quite offputting.

Personally I like the language, second only to rust for me

  • source
  • parent
  • context
  • [–] [S] 7 points 1 week ago (1 child)

    You can overload the indexing operazor "[]" (std::vector does this for example), and since c++23 this operator can have more than one argument.

    The last one is a constructor call with an overloaded conversion operator. The {} syntax is possible since c++11 I think. The conversion operator was already available before that

  • source
  • parent
  • context
  • [–] 26 points 3 weeks ago (2 children)

    I think the default solution for this is to use a dynamic dns. There are services for that or you can get yourself a domain and configure that as dnydns in your router. That is what I am doing atleast

  • source
  • [–] 4 points 1 month ago (1 child)

    It's actually pretty similar to rust, only that rust can import multiple modules (namespaces) in one line, which is just syntax sugar, and the syntax is slightly different.

    Your example would be

    use my_projext::domain::entities;
    use my_project::api::contracts::routes::http as routes;
    
  • source
  • parent
  • context
  • [–] 14 points 2 months ago (3 children)

    That wasn't the camera guy. It was Tom from "Explosion&Fire" / "Extraction&Ire" who is a pretty cool chemostry youtuber from australia. I think it was a bit or he had something different to do, because he does some pretty sketchy stuff on his own channel sometimes

  • source
  • parent
  • context
  •  

    There was already a similar report, of the switch instance function taking long, a while ago https://lemmy.world/post/42666364 I had the same issue but it got worse, now it does not work at all anymore, even for example with the app update notification that takes me to the post. Also tried it with a different account, same issue

     

    Until recently (I think before 1.69.4 but I am not sure) tapping the Home icon went back to the top of the current feed and double tapping it went to tge default feed and reloaded the content.

    Now double tapping just goes back to the top of the current feed without reloading.

    Not sure if the change was intentional, but I liked the old behaviour and would like to see it back.

    view more: next ›