Submitted by fchung t3_z7hlb0 in technology
ToughAd4902 t1_iy723ej wrote
Reply to comment by z0mbietime in Why Functional Programming Should Be the Future of Software Development by fchung
In years? Java 8 was release in 2014, almost 9 years ago. How many years is "years" in this case? Your entire definition of what functional programming is has NOTHING to do with what actual functional programming is, you should be the one deleting your comment. Every language, literally ever, is going to put code into functions (or methods, if for whatever reason you want to name it that).
According to your definition, C is a purely functional language. Do you understand now how that makes literally 0 sense? C has no classes, nor "methods" with how you want to describe it, and all logic has to exist in functions, this is the first time I've ever heard of C being classified as a functional language
Since you still don't seem to understand the difference: functional languages treat functions as first class citizens. What does that mean? A first class function is when a function can be treated the same as a variable for all purposes. This means they can be assigned to variables, they can be passed as higher order functions and used as a higher kinded type.
Putting logic into a function does not make it functional.
z0mbietime t1_iy733wq wrote
Well if you're really that curious, I haven't touched Java since college in like 2012.
Also, maybe read back over my original comment that you so eagerly misinterpreted. Everything I said was language agnostic.
I'm not sure what your goal is other than to look obnoxious honestly. If you want a recap on what I'd originally said it was to use classes where applicable and functions where it makes sense. There is no class concept in pure functional programming. And a function must be attached to a class (aka method) in pure OOP. In other words, nothing I said was wrong soooo what exactly is your problem here?
And yes I do want to call it a method because that is what it's called.
ToughAd4902 t1_iy8asu2 wrote
Haskell, the definition of a pure functional language, has classes, and then by your definition, methods. Scala, a primarily functional language, has classes. F#, a functional language, has classes. There is like 2 functional languages that don't, and that has no reason about it being functional or not. You are completely wrong, and this is my last response to this. Not a single point you've brought up has been about OOP or Functional, you need to learn them before you can argue them, that is all.
It's just hilarious you led with"you should Google before you comment" when everything you've stated is literally Googleable
[deleted] t1_iy8pxcu wrote
[removed]
AutoModerator t1_iy8pxeg wrote
Thank you for your submission, but due to the high volume of spam coming from Medium.com and similar self-publishing sites, /r/Technology has opted to filter all of those posts pending mod approval. You may [message the moderators](/message/compose?to=/r/technology&subject=Request for post review) to request a review/approval provided you are not the author or are not associated at all with the submission. Thank you for understanding.
I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.
Viewing a single comment thread. View all comments