Skip to content

Introduction to Sanctuary

Photo of Jean-Louis Giordano
Hosted By
Jean-Louis G. and 2 others
Introduction to Sanctuary

Details

Sanctuary is a functional programming library for JavaScript inspired by Haskell and PureScript.

Not only is JavaScript dynamically typed, it's reluctant to raise exceptions. Applying a binary function to three arguments is not an error, for example. This results in type errors which may go undetected even in code with "full" test coverage.

Sanctuary performs run-time type checking to manifest type errors as soon as possible (in a dynamic environment). This—in my view—makes writing JavaScript not only bearable but enjoyable!

In this talk I'll introduce the type system, sanctuary-def (https://github.com/sanctuary-js/sanctuary-def), its strengths and weaknesses, the reasons it is so slow, and possible solutions to the performance problem.

Photo of Got.λ - Göteborg Functional Programming Group group
Got.λ - Göteborg Functional Programming Group
See more events
Zimpler
Götabergsgatan 1 · Göteborg