KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
Let's say we have a memory-intensive class like an Image , with chainable methods like Resize() and ConvertTo() . If this class is immutable, won't it take a huge amount of memory when I start doing things like i.Resize(500, 800).Rotate(90).ConvertTo(Gif) , compared to a mutable one which modifies itself? How to handle a situation like this in a functional language?
Tags (comma-separated)
Save Edits
Cancel