Cristin-resultat-ID: 1286299
Sist endret: 4. november 2015, 20:11
Resultat
Vitenskapelig foredrag
2015

Errors as Data Values as the Language Default

Bidragsytere:
  • Tero Hasu og
  • Magne Haveraaen

Presentasjon

Navn på arrangementet: 27th Nordic Workshop on Programming Theory (NWPT 2015)
Sted: Reykjavik
Dato fra: 21. oktober 2015
Dato til: 23. oktober 2015

Om resultatet

Vitenskapelig foredrag
Publiseringsår: 2015

Beskrivelse Beskrivelse

Tittel

Errors as Data Values as the Language Default

Sammendrag

A “thrown” exception is a non-local side effect that complicates static reasoning about code. In some programs errors are instead propagated as ordinary values. Such propagation is sometimes done in monadic style, and some languages include syntactic conveniences for writing expressions in that style. We sketch a language-based failure management approach in which error-monad-resembling transparent error value propagation is made the language default. The approach accommodates language designs with all-referentially-transparent expressions, and syntactic conveniences resembling those of traditional exception mechanisms. Our proof-of-concept implementation of the approach is furthermore capable of automatically checking data invariants and function pre- and post-conditions, recording a trace of the failed or unevaluatable expressions caused by an error, and in some cases retaining “bad” values for potential use in recovering from an error.

Bidragsytere

Tero Hasu

  • Tilknyttet:
    Forfatter
    ved Institutt for informatikk ved Universitetet i Bergen

Magne Haveraaen

  • Tilknyttet:
    Forfatter
    ved Institutt for informatikk ved Universitetet i Bergen
1 - 2 av 2