From 8e6bf746ca92193bc960e569e7bab99a97a94dc7 Mon Sep 17 00:00:00 2001 From: Mikhail Trishchenkov Date: Sat, 20 Apr 2019 22:41:02 +0700 Subject: [PATCH] Reword to be more formal, use 'redefine' instead of 'rebind' --- idioms/temporary-mutability.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/idioms/temporary-mutability.md b/idioms/temporary-mutability.md index 27cfea9..fff21d0 100644 --- a/idioms/temporary-mutability.md +++ b/idioms/temporary-mutability.md @@ -3,9 +3,9 @@ ## Description Often it is necessary to prepare and process some data, but after that data are only inspected -and never modified. It would be cool to turn mutable variable into immutable one. +and never modified. The intention can be made explicit by redefining the mutable variable as immutable. -It can be done either by processing data within nested block or by rebinding variable. +It can be done either by processing data within nested block or by redefining variable. ## Example @@ -43,5 +43,5 @@ Compiler ensures that you don't accidentally mutate data after some point. ## Disadvantages Nested block requires additional indentation of block body. -One more line to return data from block or rebind variable (but it worth it). +One more line to return data from block or redefine variable.