Duralf

joined 1 year ago
[–] [email protected] 3 points 8 months ago

I thought most of it was stock options?

[–] [email protected] 8 points 11 months ago

Yes, past presidents have gradually expanded the power of the position beyond any reasonableness over time.

[–] [email protected] 5 points 11 months ago

It's because they don't put work on them.

[–] [email protected] 1 points 11 months ago

Fair enough, I do love being contrarian

[–] [email protected] 10 points 11 months ago (2 children)

I think you missed the whole point of my comment 😂. Regardless, the time spent compiling a small snippet of code is completely negligible. In the end, both #if 0 and if (false) have their complimentary uses.

[–] [email protected] 20 points 11 months ago

The problem is everyone disagrees on what part of C++ is good... Some like C+classes. Some like intense meta programming and some like functional programming and all are valid C++ that people advocate for.

[–] [email protected] 14 points 11 months ago (7 children)

If (false) is good because it is compiled so it doesn't get stale.

[–] [email protected] 1 points 1 year ago (1 children)

Asphalt is definitely a carbon sink though since it's a petroleum product!

[–] [email protected] 3 points 1 year ago

Even in C this is possible. Just wrap the float or whatever in a struct and all implicit conversions will be gone.

[–] [email protected] 5 points 1 year ago (5 children)

API from a call that accepted integer values between 0 and 32767 (minimum and maximum wheel speeds) to one that accepted float values between 0.0 and 1.0.

This would cause alarm bells to ring in my head for sure. If I did something like that I would make a new type that was definitely not implicitly castable to or from the old type. Definitely not a raw integer or float type.

[–] [email protected] 7 points 1 year ago

Verkar inte som om vi är i närheten av att bli av med dessa jävla omställningarna. Spelar absolut ingen roll för min del om det blir sommartid eller vintertid bara det tar slut.

view more: next ›