Join Slack
Powered by
I understand why people arguments scope. I still t...
# lucee
i
ian.hickey
07/11/2023, 2:23 PM
I understand why people arguments scope. I still think its a horrible pattern. Is there a viable way to avoid it?
z
zackster
07/11/2023, 2:25 PM
nope, you don't have to, but in hot code (heavily used) it's recommended
zackster
07/11/2023, 2:26 PM
turning on scope debugging reporting has a lot of overhead (more than the scope lookup itself)
zackster
07/11/2023, 2:26 PM
that said, if you are seeing it a couple of hundred times for a page, it''s worth considering
zackster
07/11/2023, 2:28 PM
more so in larger functions, once the local scope is no longer empty
🙌 1
i
ian.hickey
07/11/2023, 2:30 PM
@zackster
Got it. Much appreciated.
2
Views
Open in Slack
Previous
Next