Forums
New posts
Search forums
Members
Current visitors
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Menu
Log in
Register
Install the app
Install
Forums
Archive
Archive
C Programming
to cast or not to cast malloc ?
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
Reply to thread
Message
[QUOTE="Martin Ambuhl, post: 1700386"] MSG wrote: The use of malloc is idiomatic C, understood and read by any C programmer. It is just silly to claim that your non-idiomatic stuff is "more readable." It is _less_ readable to any C programmer. This is just stupid. Writing it as double *y = malloc(1000 * sizeof *y); solves this problem without introducing your NEW layer of obfuscation. No solution exists to mindless copy-and-paste. Introducing a non-idiomatic layer on top of C will not help. If your definition of "win" is introducing non-idiomatic obfuscating layers which solve nothing. Your "solution" is a quadruple loser. [/QUOTE]
Verification
Post reply
Forums
Archive
Archive
C Programming
to cast or not to cast malloc ?
Top