首页 | 本学科首页   官方微博 | 高级检索  
     检索      


Discovering Functional Programming Through Imperative Languages
Authors:Paul A Bailes
Institution:University of Queensland , Australia
Abstract:

The pedagogical desirability of functional programming is effectively swamped by an overwhelmingly imperative‐language‐oriented culture. Because a meaningful subset of the functional paradigm is accessible within imperative languages, it is possible to identify a subset of Modula‐2 that characterizes the functional paradigm subset. A series of list‐processing problems and their solutions in the Modula‐2 subset provides students with ample exposure to the practice and theory of functional programming. Extension to the full functional paradigm and migration to specialized functional languages are managed, in the worst case by initial pseudo‐Modula‐2 programming involving hypothetical extensions supporting higher‐order functions and polymorphism. More powerful solutions to this problem are foreshadowed, in the form of preprocessor implementations of Modula‐2‐ and Ada‐derivative functional languages.
Keywords:
设为首页 | 免责声明 | 关于勤云 | 加入收藏

Copyright©北京勤云科技发展有限公司  京ICP备09084417号