4 ms·
I disagree. Pretty much any program of enough size, including those written in functional languages, are going to have state that outlives the lifetime of a sin
by Blackthorn 3y ago
I disagree. Pretty much any program of enough size, including those written in functional languages, are going to have state that outlives the lifetime of a single call stack.
- preseinger 3y agohopefully not it's certainly not a given
- Blackthorn 3y agoSimple example: the web server that takes in the HTTP requests? That one definitely got initialized outside the call trace that's serving the HTTP request. No different from an object that got constructed and then a method called on it.
- preseinger 3y agoah, sorry, i misinterpreted what you meant -- obviously, yes, you're correct i thought you meant state that is created from a call stack and persists after that call stack returns -- which is something else