2 ms·
Well my example was meant to support how programming languages can create a cognitive dissonance between what the programmer thinks will be executed vs. what is
by agentultra 14y ago
Well my example was meant to support how programming languages can create a cognitive dissonance between what the programmer thinks will be executed vs. what is actually executed.
One area where I think there is a high dissonance is in how C uses the same syntax for defining arrays, indexing into arrays, and referencing pointer offsets. Other examples are the array decomposition rules, array function parameters, etc. Even experienced programmers get tripped up by them:
http://c-faq.com/~scs/cgi-bin/faqcat.cgi?sec=aryptr http://c-faq.com/~scs/cgi-bin/faqcat.cgi?sec=aryptr