Y
Hacker News
new
|
ask
|
show
|
jobs
by
reacweb
3161 days ago
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.
1 comments
positivecomment
3161 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.
link