Maintenance - We're currently working on things and you might experience some issues. Should be wrapped up soon!

This post has been de-listed

It is no longer included in search results and normal feeds (front page, hot posts, subreddit posts, etc). It remains visible only via the author's post history.

15
No side effects/change state.
Post Flair (click to view more posts with a particular flair)
Post Body

I have been programming for 40 years, C, C , Java, C#, Python, Perl, Tcl and many others, all imperative.

My understanding is FP does not allow for side effects so how do you get anything done? If you cannot effect the system, what are you doing? You would not be able to display anything on the screen, message another app, or just about anything.

What am I missing?

Thank you

Comments
[not loaded or deleted]

I think we need more emphasis on the "side" part of the term "side effects". Is printing to the screen a side-effect? IO is not a side effect, just an effect. A side-effect would be using a variable that has changed in value without you knowing about it, due to some opaque process hidden from the programmer. Lack of side effects could be described as referential transparency -- the idea that your variables don't change from underneath you (e.g. if you evaluate x to be 5, it's always 5 as long as you're looking at the same x).

Author
Account Strength
90%
Account Age
17 years
Verified Email
Yes
Verified Flair
No
Total Karma
4,492
Link Karma
148
Comment Karma
4,344
Profile updated: 1 day ago

Subreddit

Post Details

We try to extract some basic information from the post title. This is not always successful or accurate, please use your best judgement and compare these values to the post title and body for confirmation.
Posted
2 years ago