I'm trying to add scripting to a program that will interact with the file system and an HTTP web service. The C# facilities for both HTTP and the file system throw exceptions for many common cases. Without try/catch in SSharp it is almost impossible to write trustworthy code. Do you think it is possible to add try/catch to SSharp?
I suspect that implementing try/catch/finally like in C# would be difficult, particularly with multiple catch() clauses. However, I think that a simplification would be enough - only allow one catch clause, make the Exception variable implicit and eliminate the finally clause completely. This would still allow somebody to trap errors, and they could use "is" to test the type of the exception if it was really necessary.
Do you think this is possible within the architecture of SSharp or do you know of a reason why it would not work?