# Simplicity: Idea 46, Second code example doesn't use initial value of the shape

**URL:** <https://forum.devtalk.com/t/simplicity-idea-46-second-code-example-doesnt-use-initial-value-of-the-shape/249497>\
**Category:** PragProg Customers\
**Tags:** book-simplicity, errata\
**Created:** [6 September 2026 14:50 UTC](https://forum.devtalk.com/t/simplicity-idea-46-second-code-example-doesnt-use-initial-value-of-the-shape/249497 "2026-09-06T14:50:41Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![s2k](https://forum.devtalk.com/user_avatar/forum.devtalk.com/s2k/32/2784_2.png) [@s2k](https://forum.devtalk.com/u/s2k)\
**Post date:** [6 September 2026 14:50 UTC](https://forum.devtalk.com/t/simplicity-idea-46-second-code-example-doesnt-use-initial-value-of-the-shape/249497/1 "2026-09-06T14:50:41Z")

</div>

The (improved) version of the second code example is:

```python
const​ transform = [​
   (shape) => scale(shape, 0.5),​
   (shape) => rotate(shape, -5),​
   (shape) => skew(shape, 0.1),​ ]​ 

let​ square = ​new​ Square(10)​
​for​ (​let​ cmd ​of​ transform) {​
   [status, shape] = cmd(shape)​
   if​ (status != ​"ok"​) {
      shape = ​undefined​​
      ​break​​
   }​
}​ ​
 
​if​(shape)​
   display(shape)

```

However, the variable `shape` isn’t actually used in the `for` loop.  
Shouldn’t that be `let​ shape = ​new​ Square(10)​`?
