|
|
|
|
|
by lowbloodsugar
585 days ago
|
|
I mean, I don’t write it that way, but if it works for you. I wouldn’t say you have to write it that way so I wouldn’t want to put anyone off. Thinking about your answer a bit more, one of the paradigms of Rust is “there shall be many immutable references or just one mutable reference” and so I can see that functional programming would naturally lead to that. But it’s a paradigm that works with the underlying principles rather than the true nature of the language, IMHO. I do it by thinking about different domains of object graphs, and how data moves between them, for example. |
|