User bio
Developer on the Language Interoperability Team at InterSystems.
Member since Nov 7, 2015
Posts:
Replies:
I am a huge fan of try/catch. The try is virtually cost-free with overhead only encountered when an exception is caught. I do agree with Jon Willeke - when I am in older code I normally do not refactor $ZTRAP unless the changes I have to make are more than a simple edit. I also use RETURN when exiting a function/method instead of QUIT.
It is possible to simluate a finally but it isn't as nice as having a real finally block would be.
And the first two lines can be combined:
set str = ##class(%Stream.FileCharacter).%OpenId("c:\myfolder\file.csv")
Open Exchange applications:
Certifications & Credly badges:
Dan has no Certifications & Credly badges yet.
Global Masters badges:
![DC Author](https://community.intersystems.com/sites/default/files/badges/dc_author_0.png)
![DC Commenter](https://community.intersystems.com/sites/default/files/badges/dc_commenter_1.png)
![DC Problem Solver](https://community.intersystems.com/sites/default/files/badges/dc_problem_solver_1.png)
![Bronze Commenter](https://community.intersystems.com/sites/default/files/badges/295959100-c193c40f-0952-4935-bea7-4317f796fbb7_0.png)
![Insightful Commenter](https://community.intersystems.com/sites/default/files/badges/50-answer-votes.png)
![Master of Answers](https://community.intersystems.com/sites/default/files/badges/master_of_answers.png)
![Bronze Master of Answers](https://community.intersystems.com/sites/default/files/badges/bronze_master_of_answers.png)
Followers:
Following:
Sorry - I just read Matt Gage's reply. My reply is redundant.