News for hackers. Stuff that matters.
Re:A convenient untruth: Array notation in C is a lie by Nullabillity on Thursday December 22, 2016 @07:45PM (#13241864)
Saying int[5] and int[7] are the same type because the compiler doesn't enforce the difference is like saying JavaScript is untyped because there is no compiler to enforce types at all.

Regardless of what the spec or the compiler says, you the programmer absolutely need to treat them separately. Especially in a language like C, where arrays aren't even self-describing at runtime.

Re:A convenient untruth: Array notation in C is a lie by pasquinelli on Saturday December 24, 2016 @12:32AM (#13248722)
no it isn't. javascript has types; they exist only at runtime, but they're there. it's patently false to say it's untyped. but type differences codify certain classes of differences, and it really isn't that crazy or unusual to say that the length of a vector, array, list, whatever you want to call it, isn't a difference of type. to say that there's a type difference even if the type checker disagrees just means you and the type checker are using different type systems.