Hacker News new | past | comments | ask | show | jobs | submit login

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.



It's basically a reinterpret_cast, it's dirty and should look dirty, even if it's necessary in this case.


Why 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.


1) Define usability? Syntax? 2) Which language do you find "usable"?




Join us for AI Startup School this June 16-17 in San Francisco!

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: