Skip to content
Episode 116 - Messy Types and Garbage Collection episode artwork

Jun 22, 2014 1 hr 58 min

Episode 116 - Messy Types and Garbage Collection

from Illegal Argument

Garbage Collection Language/Compiler design Function Types A discussion on whether a functions signature is a type, or not. During this discussion we talked about the implicit currying of haskell functions and how this could lead to run-time errors rather than compile errors, however whilst I (Mark) knew what I was talking about, I missed a fundamental part of the equation - function types include the return type, so a partially applied function that doesn’t fit a high-order function is a compile time error. So given two functions: someHof :: (String -> String) -> String take3StringsReturningString :: String -> String -> String -> String The first function someHof takes a function String -> String and returns a String, if we partially apply take3StringsReturningString "test" the resulting function is String -> String -> String which doesn’t match the required syntax of someHof so wouldn’t even compile.

Episode details come from the podcast's RSS feed.

Embed this episode

Ready to play

Episode 116 - Messy Types and Garbage Collection

0:00 1:58:34

No transcript yet.

Requests help us decide what to transcribe next.

Frequently asked questions

How long is this episode of Illegal Argument?

This episode is 1 hour and 58 minutes long.

When was this Illegal Argument episode published?

This episode was published on June 22, 2014.

Can I download this Illegal Argument episode?

Yes. Use the download control on the episode player to save the publisher-provided media file.