~rauhl/go-conditions

28697cc2ad59d5e1882e2daa23cb2961c92f1ab8 — Robert A. Uhl 8 months ago f49cfe5 master
Add a package comment.
1 files changed, 13 insertions(+), 0 deletions(-)

M conditions.go
M conditions.go => conditions.go +13 -0
@@ 1,3 1,16 @@
// Package conditions implements a Common-Lisp–style condition (or
// resumable exception) system in Go.  It’s a proof-of-concept, not a
// well-designed, production-ready library.
//
// Among other issues, it’s not possible to return values from
// functions; state must be manipulated as a side effect.
//
// They do work, though, and perhaps some of the ideas can be adapted.
//
// See
// https://rauhl.com/2019/06/implementing-a-resumable-exception-system-in-go/
// for more information and the impetus for this tremendous abuse of
// panic, defer & recover.
package conditions

import "fmt"