[E-Lang] E Project, Documentation, and new programmers
Thu, 12 Apr 2001 18:29:30 +0000
Marc Stiegler wrote:
> >  For a case in point, after my first foray into using E, I think that
> > default ":none" guard is a major source of surprises that leave newbie
> > programmers unable to figure out what went wrong, and that it really
> ought to
> > be changed to a default ":retAny" guard that returns anything wrapped in
> > "RetVal" object. I will soon publish my notes about that experience.
I think the best solution here is actually to deviate from the expression style
syntax and have an explicit "return" keyword. Then it would be perfectly safe
to have the default guard be ":any". I am not sure, but I think following this
path would also make it possible to have E loops terminate with a return rather
than throwing an exception.