FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » Imported messages » comp.lang.php » error message I don understand
Show: Today's Messages :: Polls :: Message Navigator
Return to the default flat view Create a new topic Submit Reply
Re: Nasty language semantics (Was: error message I don understand) [message #174917 is a reply to message #174916] Sun, 17 July 2011 22:48 Go to previous messageGo to previous message
August Karlstrom is currently offline  August Karlstrom
Messages: 16
Registered: October 2010
Karma:
Junior Member
On 2011-07-18 00:06, Tim Streater wrote:
> Also at the time academics were pushing the
> single-entry-single-exit bullshit, so there was no return statement.

I guess a certain level of maturity is required to appreciate some of
these "restrictions". The return statement goes against the idea of a
truly structured goto-less programming language. Wirth introduced the
return statement (tried it) in Modula-2 and in the first versions of
Oberon but replaced it with a return clause (single exit point) in
Oberon-07. Here is a quote by Niklaus Wirth from "Differences between
Oberon-07 and Oberon"*:

"The result of a function procedure was specified by a return statement.
This form has the unpleasant property that the return statement is
syntactically disconnected from the function procedure declaration,
similar to the exit from the loop statements. It is therefore difficult
to check, whether or not a function procedure declaration specifies a
result, or perhaps even several of them. Now the result specification
becomes syntactically a part of the procedure declaration, and vanishes
as an independent statement form."


August


*http://www.inf.ethz.ch/personal/wirth/Articles/Oberon/Oberon07.pdf

--
The competent programmer is fully aware of the limited size of his own
skull. He therefore approaches his task with full humility, and avoids
clever tricks like the plague. --Edsger Dijkstra
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Ouion Movement, Roun Time (Floating Point Time)
Next Topic: [MEMCACHED] Is there a way to get the expiration of a key?
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Sat Nov 23 08:47:32 GMT 2024

Total time taken to generate the page: 0.04354 seconds