BEGIN / END Wrapper with RETURN command. Why?

With TSQL functions, wrapping the RETURN command in BEGIN and END commands seems to be mandatory.  (See the attached code snippet.)  The two commands seem superfluous.  After all, functions in other programming languages (VB.NET, VBA, PHP, JavaScript...) don't require the equivalent of RETURN be wrapped in BEGIN and END.  So why are they required with TSQL?
CREATE FUNCTION dbo.centigrade_to_farenheit (@centigrade float)
BEGIN  -- Why is this BEGIN command necessary?
     RETURN((@centigrade * 1.8) + 32.0)
END  -- Why is this END command necessary?

Open in new window

Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Aneesh RetnakaranDatabase AdministratorCommented:
you need to mention the BEGIN END in the function definition except for Inline Table-valued Functions

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Because that his how the language is....  :)
Steve HoggITCommented:
The body of a function in SQL Server is defined by a BEGIN and END. That's it, no reason, it just is. :-)
jdanaAuthor Commented:
It is what it is.  Thanks!
You have to follow the syntax and the question is why you nee BEGIN and END can be answered only the MS sql developers....
Every language has its own syntax and it doesn't need to be the same as other languages...
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Microsoft SQL Server

From novice to tech pro — start learning today.