Optional: Technical terms¶
The field of Computer Science uses a few technical terms in place of the common words we’ve been using to work our way through programming literacy. This page is to cover them for those interested who might take up CS.
- Identifiers
We’ve been using “word” for the textual element that refers to some “thing” – a “value” – whose meaning is understood by us. “Identifier” is usually used in the literature in the context of programming – where a “value” in computer memory is referenced by the identifier.
- s-expressions
We referred to terms of the form
(character-in "0123456789"),(string-length "hello")as “compound terms”. In CS, we’d usually just call them expressions or if we’re specifically talking about Racket-like languages, s-expressions. We’ve referred to these forms as “compound terms” in these notes.- Procedures and Functions
A word like
character-inwhich needed some concrete values to take on specific meaning in a context was called an “abstraction”. Depending on context, we might use the operational word procedure or function for the values that such words refer to. Note that it gets tedious quickly if we keep maintaining the distinction between a word and the value it “identifies”. So casual language tends to conflate the two where it isn’t confusing to do so.Broadly, we’ve been referring to these as “abstractions” because they generalize a concept over a number of “arguments”.
- Higher order procedures
A word like
character-in, when used with a string of allowed characters, is itself procedure-valued. This is one kind of what is called “higher order procedure”. In this case, it is a procedure, which when applied produces another procedure – i.e. a compound term which refers to an abstraction.When we defined
reinterpret, its first argument (which we namedinterpretationwas expected to itself be a procedure-valued thing likelist->stringthat was then used to “interpret” (a.k.a. “transform”) the list of characters parsed by, say,(one-or-more digit). Such a procedure is another kind of higher order procedure and may also be called a higher order function, or HOF for short, depending on context. There are many such HOFs provided for you by Racket which make expressing common ideas simple – such asmap,filter,andmap,ormap, andfor-each.