Top "Return-value" questions

Return value is the result of evaluation of a return statement.

`return None` in python not recommended. How to bypass?

I have a function which connects to a url by httplib using lxml. It checks by xpathfor a certain pattern …

python return-value handle
PHPDoc: @return void necessary?

Is it really necessary do something like this: /** * ... * * @return void */ I have quite a few methods that don't have a …

php return-value phpdoc
if [ $? -ne 0 ] then syntax error then unexpected

I have been trying to execute the following UNIX shell script which is not working. I am running it by …

unix function if-statement return-value ksh
Returning multiple values from a method in Objective-C

I asked a similar question, but I couldn't get it working exactly. I'm building an iPhone app, and there is …

iphone objective-c return-value
How to know that File.Copy succeeded?

The static method File.Copy(String, String) doesn't return a value. How can I know programatically if that function succeeded …

c# .net exception return-value file-copying
How to get the value of a Maybe in Haskell

I'm relatively new to Haskell and began to read "Real World Haskell". I Just stumbled over the type Maybe and …

return-value haskell maybe
How to return a value from a function that calls $.getJSON?

function lookupRemote(searchTerm) { var defaultReturnValue = 1010; var returnValue = defaultReturnValue; $.getJSON(remote, function(data) { if (data != null) { $.each(data.items, function(i, …

javascript jquery return-value getjson
Batch File: Return to caller?

What is the equivalent of the return statement for a batch file subroutine?

windows batch-file return-value return
Returning a c++ std::vector without a copy?

Is it possible to return a standard container from a function without making a copy? Example code: std::vector<…

c++ stl copy return-value temporary
Ignoring return values in C

Lately, I started using lint for static code analysis. One of the warning I get sometimes is regarding this issue. …

c coding-style return-value lint