rspec/rules/S1646/rule.adoc

24 lines
343 B
Plaintext
Raw Normal View History

== Why is this an issue?
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
----