Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
reacweb
· 9y ago · 0 comments
Or the action could be the return value. IMHO, trying to guess the physical model by experimentation is painful. Why not propose a debug button to display the state of variables during the execution of script.
Comments
[–]
positivecomment
9y 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.