hemanth / functional-programming-jargon

Jargon from the functional programming world in simple terms!
http://git.io/fp-jargons
MIT License
18.61k stars 1.02k forks source link

I am confused (or the 'Value' section is wrong) #159

Closed DanielHeath closed 7 years ago

DanielHeath commented 7 years ago

'Value' is described as Anything that can be assigned to a variable.

In the FP jargon I've heard, a function can be assigned to a variable but is not a value.

Am I just confused/wrong?

GoToLoop commented 7 years ago

For computers everything is a value. A function's value is its contiguous allocated block's starting memory address. That memory address is commonly known as a pointer or reference.

DanielHeath commented 7 years ago

I'm across that end of the stack :) was questioning the FP-jargon aspect (where I've heard 'value type' used to refer to data primitives).

jethrolarson commented 7 years ago

Functions are values. That's what makes them first-class in js

On Sun, Jun 18, 2017, 11:46 PM Daniel Heath notifications@github.com wrote:

I'm across that end of the stack :) was questioning the FP-jargon aspect (where I've heard 'value type' used to refer to data primitives).

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/hemanth/functional-programming-jargon/issues/159#issuecomment-309352814, or mute the thread https://github.com/notifications/unsubscribe-auth/AAB-4Eh0hRePlCbQdpOat5soWMPiZ3tvks5sFhlHgaJpZM4N9rO_ .

DanielHeath commented 7 years ago

Thanks :)