Hacker News new | ask | show | jobs
by positivecomment 3164 days ago
Exactly, the function should not be responsible to see if robot.action has any existing value. It should just return an action depending on the state.