Class Central is learner-supported. When you buy through links on our site, we may earn an affiliate commission.

YouTube

Simple Functional Effects with Tag Unions

GOTO Conferences via YouTube

Overview

Save Big on Coursera Plus. 7,000+ courses at $160 off. Limited Time Only!
Explore a simple, high-performance effect system based on tag unions in this conference talk from YOW! 2022. Dive into functional programming concepts as Richard Feldman, an expert in the field and author of "Elm in Action," demonstrates how to implement this system in the Roc programming language and OCaml using polymorphic variants. Learn how to easily mix I/O operations with different failure modes while maintaining exhaustiveness checking on error cases. Discover techniques for identifying which functions use specific effects and enforcing compile-time restrictions on effect usage. Gain insights into creating more maintainable and predictable code through this innovative approach to handling effects in functional programming.

Syllabus

Introduction
Package Downloader
Download tarball
What is an enum
Using an enum
Advantages of enums
GetEncoding
Logging
Tag Unions
Tag Union Types
William Brandon
Operation
Simulation
Task wrapper
Runtime representation
No Heap allocations
Summary

Taught by

GOTO Conferences

Reviews

Start your review of Simple Functional Effects with Tag Unions

Never Stop Learning.

Get personalized course recommendations, track subjects and courses with reminders, and more.

Someone learning on their laptop while sitting on the floor.