3 ms·
The conversion feature is in fact very convenient. We often keep different types for what we get from the user (JSON) and what we write on the database (e.g: B
by cetxcz 10y ago
The conversion feature is in fact very convenient.
We often keep different types for what we get from the user (JSON) and what we write on the database (e.g: BSON). Having the ability to convert between them without having to re-type everything is useful for a lot of code out there.
- calcifer 10y agoTo be fair, you can do that right now with unsafe.Pointer, but of course it's better to have a compile time checked version of it.