3 ms·
From the examples there, we find e.g. this nugget: return bigEndianToNative!T((cast(ubyte*)&b)[0..b.sizeof]); Do you really feel this is a language that sco
by semi-extrinsic 8y ago
From the examples there, we find e.g. this nugget:
return bigEndianToNative!T((cast(ubyte*)&b)[0..b.sizeof]);
Do you really feel this is a language that scores high on usability? Because it doesn't look like it.
- skocznymroczny 8y agoIt's basically a reinterpret_cast, it's dirty and should look dirty, even if it's necessary in this case.
- semi-extrinsic 8y agoWhy is it necessary to do something that looks dirty? To me, "usability" means I shouldn't have to care about endianness, pointers, all the superfluous mental overhead of C et al. If you program in Python, at best you need to care about whether something is a float or int (or string if read from file). In recent Python versions we no longer have to care if a string is unicode or not (they're all unicode now); that is precisely progress in usability.
- renox 8y ago1) Define usability? Syntax? 2) Which language do you find "usable"?