Is this a formal way to document anonymous functions?