Pinned Tweet
Replying to @IroncladDev
Unless the preference is unaligned indentation, anyone who prefers aligned indentation either prefers 1 space indentation or tabs.
The rest are posers.
On this note, a stdlib c++ implementation could probably provide pure interface structures for the underlying system, where the data is internal by type erasure to the public interface struct.
Inside you reintepret_cast the this pointer to it's original data type.
UB? probably.
So you could use safe<int>...
OR
static_cast<unsigned>(x) + 1 < static_cast<unsigned>(x)
Just fucking learn the language oh my lord.
And this is completely void for string literals, if they are not zero-terminated, the compiler is wrong (or you used raw literal strings in C++).
Replying to @Traveler2000AD @wangzhr4
If you have no guarantee that you've correctly 0-terminated your 0-terminated strings, then you have no guarantee that you've correctly sized your sized string.
C++: "Leave no room for a lower level language."
Odin: gingerbill.org/article/2026/…
These are the language type tools I have been looking to see for C as well, example: specifying internal calling conventions and other goodies for specific 2% problems that are load-bearing.
Here I am reading the mans article, and he rabbit holes me.
>:(
Built-in types should be built-in, no std:: necessary.
CFI is the baseline, no headers required.
If I see a vector of pointers in any code, there better be an insanely good reason for it.
Or it's fired.
Just one line of deduction guide, and no more need to wrap up functions in silly "deleter" structs. C++, the language of mistakes and missed opportunities.
If you wanna keep sizes down, use lambdas instead of function objects (allows sprinkling of keywords too).
CTAD ftw.
Like @ThePrimeagen says: "Choose your hard".
Hard now or hard later.
Echoes sentiments of Marcus Aurelius and other great stoics.
Someone did not read their C++ object model section or the casting rules section.
cppreference's biggest page is probably on casting.
C is pretty cool tho.
Ginger Bill put into words pretty much my feelings every time I write "template <typename T>", look into type_traits or concepts, or the C++ print templates...
Many such cases where the types I want to use have the same interface, and I want some static virtual dispatching.
My new article is finally done:
CTTI is Exponential, RTTI is Linear
gingerbill.org/article/2026/…
youtube.com/watch?v=7fGB-hjc…
What a great video. 90% agree.
Somewhere in there, there is a good language.















