diff options
Diffstat (limited to 'chapter02/src')
| -rw-r--r-- | chapter02/src/main/java/com/seaofnodes/simple/node/AddNode.java | 2 | ||||
| -rw-r--r-- | chapter02/src/main/java/com/seaofnodes/simple/node/Node.java | 6 |
2 files changed, 6 insertions, 2 deletions
diff --git a/chapter02/src/main/java/com/seaofnodes/simple/node/AddNode.java b/chapter02/src/main/java/com/seaofnodes/simple/node/AddNode.java index 2d58cb75..7c1968c5 100644 --- a/chapter02/src/main/java/com/seaofnodes/simple/node/AddNode.java +++ b/chapter02/src/main/java/com/seaofnodes/simple/node/AddNode.java @@ -29,7 +29,7 @@ public class AddNode extends Node { @Override public Node idealize () { - // TODO: add of 0 + // TODO: add of 0, and many other peepholes added in Chaper04 return null; } diff --git a/chapter02/src/main/java/com/seaofnodes/simple/node/Node.java b/chapter02/src/main/java/com/seaofnodes/simple/node/Node.java index 7e5f2701..6f47f9eb 100644 --- a/chapter02/src/main/java/com/seaofnodes/simple/node/Node.java +++ b/chapter02/src/main/java/com/seaofnodes/simple/node/Node.java @@ -82,7 +82,11 @@ public abstract class Node { // has to be robust with broken graph/nodes. @Override public final String toString() { - // TODO: This needs a lot of work + // TODO: The print evolves in later chapters. For now, a simple + // recursive print does well. Later with control flow and later still + // with loops, we need some serious algorithm work to get a decent + // print. So you should consider the "print" to always be a work-in- + // progress as we march through the chapters. return print(); } |
