Expand on code reuse practices and considerations when scripting #9898
Labels
area-conceptual
Area - Conceptual articles
area-sdk-docs
Area - SDK docs
issue-doc-idea
Issue - request for new content
up-for-grabs
Tag - issue is open for any contributor to resolve
Prerequisites
Get-Foo
cmdlet" instead of "Typo."Links
https://learn.microsoft.com/powershell/scripting/dev-cross-plat/performance/script-authoring-considerations
Summary
The section Avoid repeated calls to a function in PowerShell scripting performance considerations hits a good point. But there are quiet some situations were it is needed to (re)use the specific code block at several locations in a script as well, which leaves a dilemma:
Therefore, I think it is good the supply a few alternatives to the expensive function calls.
Details
No response
Suggested Fix
No response
The text was updated successfully, but these errors were encountered: