|
Hi Kacper et al, I understand. But I would say that using ⎕EA as you describe is exactly how cleanup should be done. I see ⎕EA not like (as the name may suggest) a means of trying different paths until one succeeds like in: 'try_A' ⎕EA 'try_B' ⎕EA 'try_C' ... but rather as: 'cleanup_failed_B' ⎕EA 'try_B' I also don;t see a good way of introducing a defer function without introducing a dubious APL syntax extension that would be difficult to read for people not knowing the extended syntax. For the sake of compatibility, such things should, IMHO, be avoided. /// Jürgen On 04/12/2016 02:10 AM, Kacper Gutowski
wrote:
If I understand correctly, Elias wants to have something that would ensure that every file opened is eventually closed (only more general so it can be applied to any external resources not only files). That is in a code similar to the following, to ensure the line 3 is always run even if there's an error in FUN. |
- [Bug-apl] Error handling and IO Elias Mårtenson
- Re: [Bug-apl] Error handling and IO Alexey Veretennikov
- Re: [Bug-apl] Error handling and IO Elias Mårtenson
- Re: [Bug-apl] Error handling and IO Kacper Gutowski
- Re: [Bug-apl] Error handling and IO Elias Mårtenson
- Re: [Bug-apl] Error handling and... Juergen Sauermann
- Re: [Bug-apl] Error handling... Elias Mårtenson
- Re: [Bug-apl] Error hand... Juergen Sauermann
- Re: [Bug-apl] Error hand... Kacper Gutowski
- Re: [Bug-apl] Error hand... Juergen Sauermann
- Re: [Bug-apl] Error hand... Elias Mårtenson
- Re: [Bug-apl] Error hand... Juergen Sauermann
- Re: [Bug-apl] Error handling and IO Juergen Sauermann
- Re: [Bug-apl] Error handling and IO Elias Mårtenson
- Re: [Bug-apl] Error handling and IO Juergen Sauermann
- Re: [Bug-apl] Error handling and IO Elias Mårtenson
- Re: [Bug-apl] Error handling and IO Louis de Forcrand
