Top "Return" questions

A return statement causes execution to leave the current subroutine and resume at the point in the code immediately after where the subroutine was called, known as its return address.

Is it a good approach to call return inside using {} statement?

I just want to know is it safe/ good approach to call return inside a using block. For ex. using(…

c# return using
Return in Recursive Function

I have just started learning python (v3.2.3) and have encountered an odd problem about the return in this function: def …

python recursion return
Return multiple values from function

Is there a way to return several values in a function return statement (other than returning an object) like we …

function return dart
get all row and column data using SELECT - C#

I'm trying to get all data from an SQL table and store it in a List using the C# programming …

c# sql return selectall
PHP: Is it possible to return multiple values from a function?

Is it possible to have a function with two returns like this: function test($testvar) { // Do something return $var1; return $…

php function return
How can I return something early from a block?

If I wanted to do something like this: collection.each do |i| return nil if i == 3 ..many lines of code …

ruby loops return break
Differences between System.out.println() and return in Java

I'm trying to understand the difference, and benefits of using System.out.println() vs. return blah in a method. It …

java return return-value system.out
return a boolean - jdbcTemplate

I would like to return a boolean value using in this method: public Boolean isSizeOk(String transactionId){ String sqlQuery = "SELECT …

boolean return jdbctemplate
How do I get the return value when using Python exec on the code object of a function?

For testing purposes I want to directly execute a function defined inside of another function. I can get to the …

python function return exec
PHP - Break after return?

do I need to use break here or will it stop looping and just return once? for($i = 0; $i < 5; $…

php for-loop return break