[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: LUA Vs Javascript
- From: Jan Schütze <JanS@...>
- Date: Fri, 27 Jun 2008 22:48:19 +0200
Hey,
the difference is (in javascript):
try {
// try something strange which usually works
} catch (e) {
// on exception
}
there it actually does not matter where the exception is thrown, you
just need to find a place where the try+catch handles it. So its' pretty
much, like php5/c#/java/delphi manages exceptions and gives you quite
simple possibility to handle the exceptions when it occurs and where you
want to handle it - with the opportunity to continue the script after
the exception is handled. I wasn't able to create a quite similar and
simple approach in lua, yet. It would be cool, if that would be possible
with error+pcall somehow!
Except that - which is actually just quite important for widely splitted
and modularized software - I see the possibilities of lua (considering
speed which is/was way better then current javascript implementations)
are really worth to check and evaluate it as opportunity.
Regards,
Jan
Alex Sandro Queiroz e Silva wrote:
What's the big difference between JS system and error/pcall/xpcall?
--
http://dracoblue.net