Closed DanielHeath closed 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.
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).
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_ .
Thanks :)
'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?