mostly-adequate-guide (old)

Updated 2 years ago

Stephen Ely (@reallyely) started discussion #198

2 years ago · 0 comments


Pure functions are completely self contained. Everything the function needs is handed to it on a silver platter. Ponder this for a moment... How might this be beneficial? For starters, a function's dependencies are explicit and therefore easier to see and understand - no funny business going on under the hood.

Chapter 3: Pure Happiness with Pure Functions (Edit this file)

Calling a function declared outside of another function

Given the pure example for signUp(): How do we justify calling functions declared outside of a given function without passing it in as a parameter?

No comments on this discussion.

to join this conversation on GitBook. Already have an account? Sign in to comment

You’re not receiving notifications from this thread.

3 participants