rspec/rules/S1646/rule.adoc

22 lines
315 B
Plaintext
Raw Normal View History

Although Variants are convenient, they are inefficient because they must be converted to the appropriate type before operations are performed on them.
== Noncompliant Code Example
2022-02-04 17:28:24 +01:00
[source,text]
----
Dim I
Dim A as Variant
----
== Compliant Solution
2022-02-04 17:28:24 +01:00
[source,text]
----
Dim I as Integer
Dim A as String
----