Fix docs - Records type description to Mapster v10#856
Fix docs - Records type description to Mapster v10#856DocSvartz wants to merge 1 commit intoMapsterMapper:developmentfrom
Conversation
|
I would change these 2 lines for clarity 100 > Mapster treats the Record type as an immutable type. Added the 101 > Only a non-destructive mutation is returned using the with-expression. More direct language, and using the correct terminology for using with { ... } syntax. I am also using returned instead of available as the mutated record is returned. Agree? |
|
What I wanted to convey is that the result will be similar to how with expression works. |
| > Mapster treats Record type as an immutable type. | ||
| > In this regard, only a with-like non-destructive mutation is available. |
There was a problem hiding this comment.
Mapster treats the Record type as an immutable type.
Only a non-destructive mutation returned new modify record instance.
@stagep Maybe like this?
There was a problem hiding this comment.
if the result is a Record then the
"A non-destructive mutation" is correct English but the remaining part makes no sense as it is English words but used incorrectly. "A non-destructive mutation is returned" is also correct but "new modify record instance" is not. Do you mean a "newly modified record instance"? That is English but ambiguous.
No description provided.