Modern C++ Reading Mojang's code:
https://github.com/skypjack/entt/blob/master/src/entt/entity/entity.hppIt is only getting worse.
For example they now do
using u4 = uint32_t
What happened to the typedef, you may ask.... - well, the same shit that happened to printf and #define.
One probably expected them to implement a better macro processor, but instead they doubled the effort embedding a compile time esoteric language...
template<bool Dummy = true, typename = std::enable_if_t<Dummy && std::is_default_constructible_v<base_type>>
Reason? I don't know. Some processes just happen. Without any obvious reason.
So yeah, I identify as data alchemist, not a developer or a programmer.
Current Mood: amused