skip to main content
10.1145/316689.316694acmconferencesArticle/Chapter ViewAbstractPublication PagesaplConference Proceedingsconference-collections
Article
Free Access

How to write an APL utility function

Published:01 January 1998Publication History

ABSTRACT

In today's business climate, reusable code is essential. But many programmers often don't use existing utility functions because they find them difficult to use or not general enough. Also, they may not know that such functions exist. Instead, programmers often clone lines of code from other functions. This results in sloppy, undocumented code which is full of errors. In order to avoid this, the author of a utility function must make an extra effort to ensure that his function is designed properly.APL is easy to learn because its primitives behave consistently, work on arrays as well as scalars, can handle edge conditions, often use default values and are totally encapsulated from the user. We can learn from this by designing utility functions in the same way, allowing them to become an extension of APL and its set of primitives. This paper will show some examples and design techniques.

References

  1. {Man89} Mansour, Stephen, "Techniques for Avoiding Conditional Execute in APL2," APL89 Conference Proceedings, APL Quote Quad, Vol. 19, no. 4, August 1989.Google ScholarGoogle Scholar
  2. {Man93} Mansour, Stephen, "Using Defined Operators and Functions Arrays to Solve Non-Linear Equations in APL2," APL93 Conference Proceedings, APL Quote Quad, Vol. 24, no. 1, August 1993.Google ScholarGoogle Scholar

Index Terms

  1. How to write an APL utility function

    Recommendations

    Comments

    Login options

    Check if you have access through your login credentials or your institution to get full access on this article.

    Sign in
    • Published in

      cover image ACM Conferences
      APL '97: Proceedings of the conference on Share knowledge share success
      January 1998
      56 pages
      ISBN:9781450373142
      DOI:10.1145/316689

      Copyright © 1998 Copyright is held by the owner/author(s)

      Permission to make digital or hard copies of part or all of this work for personal or classroom use is granted without fee provided that copies are not made or distributed for profit or commercial advantage and that copies bear this notice and the full citation on the first page. Copyrights for third-party components of this work must be honored. For all other uses, contact the Owner/Author.

      Publisher

      Association for Computing Machinery

      New York, NY, United States

      Publication History

      • Published: 1 January 1998

      Check for updates

      Qualifiers

      • Article

    PDF Format

    View or Download as a PDF file.

    PDF

    eReader

    View online with eReader.

    eReader