- Log in to post comments
User bio
404 bio not found
Member since Dec 9, 2015
Posts:
Replies:
I agree. I think you can remove that extra try/catch.
- Log in to post comments
With all due respect, Python, C#, Java, Rust, and other languages also allow multiple commands on the same line just like ObjectScript does. I see that Go doesn't allow this.
ObjectScript simply evaluates expressions (arithmetic and logical) strictly left-to-right. Using parentheses gives you control, and has the added benefit of making a complex expression easier to read for other developers. Would you ever write this in any language?
if a = 3 && b = 4 && c = 5 || d = 6 {write "succeeded"} else {write "failed"}
No. You'd write it like this:
if (a = 3) && (b = 4) && ((c = 5) || (d = 6)) {write "succeeded"} else {write "failed"}
- Log in to post comments
Open Exchange applications:
Certifications & Credly badges:
Joel has no Certifications & Credly badges yet.
Followers:
Following:
Joel has not followed anybody yet.
One out-of-date statement:
Atelier is deprecated and that link doesn't work anymore. Use VS Code with the ObjectScript Extension Pack instead https://docs.intersystems.com/components/csp/docbook/DocBook.UI.Page.cls?KEY=GVSCO_install