From 3de33d30cdff4e85940f781bfa4c4612af85eee2 Mon Sep 17 00:00:00 2001 From: Cliff Click Date: Sun, 4 Aug 2024 13:53:42 -0700 Subject: TODO comments (#94) --- chapter03/src/main/java/com/seaofnodes/simple/node/AddNode.java | 2 +- chapter03/src/main/java/com/seaofnodes/simple/node/Node.java | 6 +++++- 2 files changed, 6 insertions(+), 2 deletions(-) (limited to 'chapter03/src/main/java') 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(); } -- cgit v1.2.3