summaryrefslogtreecommitdiff
path: root/chapter03/src
diff options
context:
space:
mode:
Diffstat (limited to 'chapter03/src')
-rw-r--r--chapter03/src/main/java/com/seaofnodes/simple/node/AddNode.java2
-rw-r--r--chapter03/src/main/java/com/seaofnodes/simple/node/Node.java6
2 files changed, 6 insertions, 2 deletions
diff --git a/chapter03/src/main/java/com/seaofnodes/simple/node/AddNode.java b/chapter03/src/main/java/com/seaofnodes/simple/node/AddNode.java
index 2d58cb75..7c1968c5 100644
--- a/chapter03/src/main/java/com/seaofnodes/simple/node/AddNode.java
+++ b/chapter03/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/chapter03/src/main/java/com/seaofnodes/simple/node/Node.java b/chapter03/src/main/java/com/seaofnodes/simple/node/Node.java
index 504b8e24..82357f9b 100644
--- a/chapter03/src/main/java/com/seaofnodes/simple/node/Node.java
+++ b/chapter03/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();
}