skip to main content
10.1145/2851613.2851943acmconferencesArticle/Chapter ViewAbstractPublication PagessacConference Proceedingsconference-collections
research-article

Initialize-and-catch

Published:04 April 2016Publication History

ABSTRACT

In this extended abstract we propose to enhance declaration of local variables with a catching mechanism. This provides a more powerful and methodologically more appropriate mechanism of catching exceptions than the usual try/catch construct. The advantages are highlighted by presenting some paradigmatic examples. The proposal is formalized as an extension of Featherweight Java (FJ) with a type system which can be proved to be sound.

References

  1. The Python Tutorial. https://docs.python.org/3/tutorial, 2015.Google ScholarGoogle Scholar
  2. D. Ancona, G. Lagorio, and E. Zucca. A core calculus for Java exceptions. In OOPSLA 2001, SIGPLAN Notices. ACM Press, October 2001. Google ScholarGoogle ScholarDigital LibraryDigital Library
  3. S. Drossopoulou and S. Eisenbach. Describing the semantics of Java and proving type soundness. In Formal Syntax and Semantics of Java, number 1523 in LNCS, pages 41--82. Springer, 1999. Google ScholarGoogle ScholarDigital LibraryDigital Library
  4. S. Drossopoulou and T. Valkevych. Java exceptions throw no surprises. Tech. Rep., Dept. of Computing - Imperial College of Science, March 2000.Google ScholarGoogle Scholar
  5. J. Gosling, B. Joy, G. Steele, and G. Bracha. The JavaLanguage Specification, Second Edition. Addison-Wesley, 2000. Google ScholarGoogle ScholarDigital LibraryDigital Library
  6. A. Igarashi, B. C. Pierce, and P. Wadler. Featherweight Java: a minimal core calculus for Java and GJ. ACM TOPLAS, 23(3):396--450, 2001. Google ScholarGoogle ScholarDigital LibraryDigital Library
  7. J. Kiniry. Program safety via programmer safety. In ISoLA 2006, page 8. IEEE, 2006. Google ScholarGoogle ScholarDigital LibraryDigital Library
  8. G. Lagorio and M. Servetto. Strong exception-safety for checked and unchecked exceptions. JOT, 10:1: 1--20, 2011.Google ScholarGoogle ScholarCross RefCross Ref
  9. B. Meyer. Disciplined exceptions. Tech. Rep. TR-EI-13/DE, Interactive Software Engineering Inc., 1988.Google ScholarGoogle Scholar

Index Terms

  1. Initialize-and-catch

      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
        SAC '16: Proceedings of the 31st Annual ACM Symposium on Applied Computing
        April 2016
        2360 pages
        ISBN:9781450337397
        DOI:10.1145/2851613

        Copyright © 2016 ACM

        Permission to make digital or hard copies of all or part 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 components of this work owned by others than ACM must be honored. Abstracting with credit is permitted. To copy otherwise, or republish, to post on servers or to redistribute to lists, requires prior specific permission and/or a fee. Request permissions from [email protected]

        Publisher

        Association for Computing Machinery

        New York, NY, United States

        Publication History

        • Published: 4 April 2016

        Permissions

        Request permissions about this article.

        Request Permissions

        Check for updates

        Qualifiers

        • research-article

        Acceptance Rates

        SAC '16 Paper Acceptance Rate252of1,047submissions,24%Overall Acceptance Rate1,650of6,669submissions,25%

      PDF Format

      View or Download as a PDF file.

      PDF

      eReader

      View online with eReader.

      eReader