arXiv.itsnick.co

an independent field guide to 23 million papers from arXiv & OpenAlex — not affiliated with arXiv.org

Computer Science · Computer Science Applications

Using an Imperative Language to Teach Applicative Methods

Daniel Barrett, Robert Strandh

See on the map

Abstract

Many universities teach traditional, imperative languages in their introductory programming courses, even though an applicative language may be preferable. In this paper, we present a compromise and show how applicative programming methods may be illustrated effectively using a subset of Pascal. The approach focuses on order of evaluation, the if statement, functions, and recursion. We discuss several program examples actually given in class, and interesting problems encountered by students who had previous imperative programming experience. Although we are just beginning to investigate the results of our approach, we believe that we have been able to cut the time to explain Pascal syntax to a minimum, allowing more coverage of programming techniques. 1 Introduction It can be argued that an applicative programming language offers the best introduction to programming, given its simple syntax and few restrictions on combining expressions [1]. Unfortunately, some universities require tha...

More like this