The Math Forum



Search All of the Math Forum:

Views expressed in these public forums are not endorsed by NCTM or The Math Forum.


Math Forum » Discussions » Education » math-teach

Topic: Names have scope in CS
Replies: 2   Last Post: Oct 7, 2017 11:03 PM

Advanced Search

Back to Topic List Back to Topic List Jump to Tree View Jump to Tree View   Messages: [ Previous | Next ]
kirby urner

Posts: 3,690
Registered: 11/29/05
Names have scope in CS
Posted: Oct 6, 2017 4:53 PM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply
att1.html (2.4 K)

One difference between conventional math notation and runnable, coded math
notation is the latter is more explicit about scope.

"Let x = 200" but where and for how long? The name x will be something else
on the next page.

In runnable math notation we might assign a name within a function knowing
we're strictly within the local "namespace" and not creating side effects
more globally. The name "x" has a particular role inside this function only.

Some may complain this is all conceptual overhead and detracts from
learning core math. However the issue of the same names having different
meanings depending "how used" in a language game, is one we must come to
grips with in the humanities.

Sometimes a false hubris leads us into think a "math word" such as
"squaring" is automatically global because math is "a universal language."
Claims about the universality of math terms are themselves more political
than mathematical. Contending empires push their favorite squiggles.

Computer languages have more humility baked into them. We know any given
language is one of many. None claim to be "universal".

Sure, following widely shared habits and expectations provides a
convenience to others. APL (a computer language) didn't do that. Wolfram
Language tries harder to mirror comventional typography.

Board games, games in general, remind us to think in terms of language
games i.e. scope. Meaning emerges in context. "Scope" and "context" have
similar meaning.

CS will likely prove a useful counter-weight for those suffering from a
false sense of universality around any one particular notation.

Calculus provides a good example in that Newton's notation for "fluxions"
has no widespread following in contemporary K-12 treatments.

Kirby



Point your RSS reader here for a feed of the latest messages in this topic.

[Privacy Policy] [Terms of Use]

© The Math Forum at NCTM 1994-2017. All Rights Reserved.