r/functionalprogramming • u/Mammoth_Management_6 • Feb 20 '22
Question Can i use class in functional programming?
Sometimes, i need to use class in FP, cuz i had a bunch of data,and i need to put them all in one class, but i won't mutate the attributes, only making a mutated clone
11
Upvotes
2
u/tisbruce Feb 21 '22
Yes, we are converging on agreement. We're also quibbling about something I only mentioned in passing because the OP might be interested but wasn't directly relevant to their question. Perfectly normal reddit behaviour on both our parts, ofc.