Advanced Compilers & Programming Language Theory
Q94 / 100

What is algebraic effects and handlers?

Correct! Well done.

Incorrect.

The correct answer is B) A programming model providing modular, type-safe side effects via effect declarations (like interfaces) and effect handlers (interpreters) that can be composed and overridden

B

Correct Answer

A programming model providing modular, type-safe side effects via effect declarations (like interfaces) and effect handlers (interpreters) that can be composed and overridden

Explanation

Algebraic effects (Bauer & Pretnar 2015, Koka, Multicore OCaml, Effekt): effects are declared as operations (raise, yield, state.get). Handlers provide implementation. Allows replacing one handler with another for testing — more modular than monads.

Progress
94/100