Two extremes are APL which does not define any precedences (not even for arithmetic operators), and C which defines 15 levels of precedence!

That’s bound to be confusing.

Well, at least, if you know math. (Which you should if you’re trying to learn to program.) We’re taught about precedence by the time we start math!

From Ben Ari’s Understanding Programming Languages
Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s