rename wantValue -> valueAsResult, unindent ws
rename value_as_result
add doc for value_as_result