links for 2010-12-24

December 25, 2010
  • <blockquote><a href="book-Z-H-4.html#%_toc_%_sec_3.1.3">3.1.3&nbsp;&nbsp;The Costs of Introducing Assignment</a><p style="font-family: 'Times New Roman'; font-size: medium; "><a name="%_idx_2976"></a>As we have seen, the&nbsp;<tt>set!</tt>&nbsp;operation enables us to model objects that have local state. However, this advantage comes at a price. Our programming language can no longer be interpreted in terms of the substitution model of procedure application that we introduced in section&nbsp;<a href="book-Z-H-10.html#%_sec_1.1.5">1.1.5</a>. […]</p><p style="font-family: 'Times New Roman'; font-size: medium; ">So long as we do not use assignments, two evaluations of the same procedure with the same arguments will produce the same result, so that procedures can be viewed as computing mathematical functions. Programming without any use of assignments, […] is accordingly known as&nbsp;<a name="%_idx_2978"></a><em>functional programming</em>.</p></blockquote>
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

%d bloggers like this: