The Eric Normand Podcast cover image

Out of the Tar Pit

The Eric Normand Podcast

00:00

Using Functional Values to Simulate State

In a pure functional program, you can always tell exactly what will control the outcome of a procedure by looking at the arguments supplied where it is invoked. In a stateful program, this property is completely destroyed. There's in principle nothing to stop functional programs from passing a single extra parameter into and out of every single function in the entire system. Ease of reasoning is lost. So you can just reintroduce global variables in a functional system. Okay. Look at all these words here. Completely destroyed. You can never tell what will controlthe outcome. Whoa. This is a very strong statement. The power corrupts problems, someone's going to do it somewhere. If this extra

Transcript
Play full episode

The AI-powered Podcast Player

Save insights by tapping your headphones, chat with episodes, discover the best highlights - and more!
App store bannerPlay store banner
Get the app