Главная
Study mode:
on
1
Introduction
2
Package Downloader
3
Download tarball
4
What is an enum
5
Using an enum
6
Advantages of enums
7
GetEncoding
8
Logging
9
Tag Unions
10
Tag Union Types
11
William Brandon
12
Operation
13
Simulation
14
Task wrapper
15
Runtime representation
16
No Heap allocations
17
Summary
Description:
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.

Simple Functional Effects with Tag Unions

GOTO Conferences
Add to list
0:00 / 0:00