-
Notifications
You must be signed in to change notification settings - Fork 8.1k
Closed
Labels
Issue-Enhancementthe issue is more of a feature request than a bugthe issue is more of a feature request than a bugResolution-FixedThe issue is fixed.The issue is fixed.WG-Engine-Performancecore PowerShell engine, interpreter, and runtime performancecore PowerShell engine, interpreter, and runtime performance
Description
LanguagePrimitives.TryConvertTo is implemented by wrapping LanguagePrimitives.ConvertTo in exception handling, and return false if it failed.
This can be improved upon by using the ConversionData return from FigureConversion by checking if the Rank is ConversionRank.None before we try to call the conversion.
By doing an early exit, return we avoid the exceptions that are always thrown when there are no available conversions.
Metadata
Metadata
Assignees
Labels
Issue-Enhancementthe issue is more of a feature request than a bugthe issue is more of a feature request than a bugResolution-FixedThe issue is fixed.The issue is fixed.WG-Engine-Performancecore PowerShell engine, interpreter, and runtime performancecore PowerShell engine, interpreter, and runtime performance