Quantcast
Channel: Adobe Community : Popular Discussions - InDesign Scripting
Viewing all articles
Browse latest Browse all 15932

Using "with" Blocks: Any Problem?

$
0
0

Is the use of with blocks frowned upon among InDesign scripters these days? I'm aware that they are often disfavored in the web world, but I see them used in some sample code I've seen, and being analogous to AppleScript tell blocks, it seems to cut out a lot of repetition or creating non-essential variables. Is there really a risk? Some of the reasoning I've seem mentioned to avoid it involve scoping of variables with the same name, but that could easily be avoided in a personal script, no?


Viewing all articles
Browse latest Browse all 15932

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>