I wasn’t sure which word to use so wikipedia to the rescue https://en.wikipedia.org/wiki/Bracket
- 1 Post
- 28 Comments
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
Good point regarding the {} implementation.
I disagree slightly regarding your point that these aren’t function calls. Yes technically they are different things but effectively they are functions, I cann pass arguments and get a result based on some operations.
Of course not all of these can do anything but only the constexpr value is actually pretty limited. The other ones are straight up functions
Kwdg@discuss.tchncs.deto
Programmer Humor@programming.dev•The only way one should code C btw.
27·1 year agoI think
druckefis correct, thefmeansformat.fprintfwould bddruckeforDdruckeF
Kwdg@discuss.tchncs.deto
Lemmy Shitpost@lemmy.world•anons brother has some strong opinions
71·1 year agoI find differences in how people react to sensory inputs fascinating. I don’t have any problems with concrete or concrete powder. For me hell on earth are lenticular prints (not viewing them, but touching them) even hearing someone glide their finger over one makes my skin crawl
By going there? None of my schools had any communication line between classroom and anywhere else, except for networking in the computer rooms
I don’t see how “give and take” would have anything to do with bisexuality?
His opinion is literally on the frontpage of his project on github, there is nothing ‘alleged’ about it. I don’t think the project can be separated from his opinions
The anti DEI stuff is in the project readme and the anti vax bullshit was on the lkml. So I think the auther can not keep his ‘opinions’ and politics out of his projects. If he uses his software work to promote potentially dangerous believes, I don’t think the project should be supported or promoted
Also the guy got told off by Linus Torvalds for being an anti-vaxxer https://www.theregister.com/2021/06/11/linus_torvalds_vaccine_smackdown/
So imo this isn’t a project that should be supported
Yeah very recently, by a guy who says it is explicitly anti “DEI” in the readme and thinks there is some kind of conspirancy by IBM to kill Xorg
I like minimal terminals, was using st for a long time and now I’m using foot for quite a while already. Since I’m using tmux I don’t need my terminal to have any tab/windowing features
Sure, not just for wealthy people but also company events and similar stuff. My company recently had an event and a well known singer performed, afaik the cost was around 80.000$ for a few hours
Not needed, main in C++ implicitly returns 0 if there is no return
Kwdg@discuss.tchncs.deto
Technology@lemmy.world•Freed At Last From Patents, Does Anyone Still Care About MP3?English
7·2 years agoI’m a big fan ogg opus, but I wouldn’t convert between lossy formats
As a german I’ve never heard about iDEAL. The Wikipedia article says that it is mainly used in the netherlands
Kwdg@discuss.tchncs.deto
Linux@lemmy.ml•Systemd wants to expand to include a sudo replacement
45·3 years agoThat already exists.
systemd-runis already available today. So the attack surface would be smaller




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