Replies: 1 comment 3 replies
-
Hi @parthik19, it is not memoized, that is the power of referential transparency :) This is a key property of functional programming. It allows us to treat program as values; we can inline a value such as one returning Have a look at those links, and I also recommend to play around with similar code that uses |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
The
status
field inHealthCheck[F]
isval
and notdef
on line 46 ofHealthcheck.scala
. Doesn't this mean that whenever status is called,healthCheck.status
will return whatever is cached from the first call ofstatus
? Shouldn't it recompute the status since a successful status at one point doesn't mean the service will be healthy at every point afterwards?Beta Was this translation helpful? Give feedback.
All reactions