Hi, I posted a 2 min to-read median post to consid...
# getting-started
m
Hi, I posted a 2 min to-read median post to consider the behavior of immutable types when using
apply
and
also
scope functions. Please make me happy with your valuable opinions. https://medium.com/@mr.khahani/consider-also-and-apply-scope-functions-before-they-bite-you-2969d526093c
y
That's actually quite interesting! A mention of how this can be improved is in the value classes keep
👍 2
j
Yeah I thought this was well known. Apply is for further initialization of mutable classes and also is for side effects
👍 1
o
Interesting. Good example. I wouldn't curse in an article ("bloody wonder"). Good luck for the job hunt.
👍 1
m
You're right @Oliver Eisenbarth, updated. 😅
j
From the docs • Object configuration: apply • Additional effects: also
m
We can be more precise: • Mutable object configuration: apply