One of the core concepts in functional programming (based on C#)

“The whole body of the method is a single expression which returns a value. In C#
this means that the body has to start with return (#1). Also, we can’t use
return anywhere else in the code, because that would require jumping to the end
of the method from a middle of an expression, which isn’t possible.”

Quote from the book: Real World Functional Programming: with examples in F# and C#

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s