Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Downvoters, care to elaborate what you think is wrong with the above? Literally even fortran can do better than

   size_t len_a = sizeof(a)/sizeof(a[0]);
or

   my_pseudo_foo_array = (foo*) malloc(len * sizeof(foo));


You're not wrong. Even BASIC was better than this.




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

Search: