mirror of
https://github.com/bazelbuild/bazel-skylib
synced 2024-11-26 04:30:24 +00:00
b09d5d41b2
Even though it's not great to use type checks, they are frequently useful for checking input types of macros. Because there is no standard way of checking types, at least 2 types of checks are used: - `type(foo) == type([])` - `type(foo) == "list"` The first option is not very readable and the second option seem to be relying on an Bazel implementation detail. Encapsulating type checks into this library enables consistent and easy to understand type checking without explicitly relying on implementation details. |
||
---|---|---|
.. | ||
BUILD | ||
collections_tests.bzl | ||
dicts_tests.bzl | ||
new_sets_tests.bzl | ||
partial_tests.bzl | ||
paths_tests.bzl | ||
selects_tests.bzl | ||
sets_tests.bzl | ||
shell_tests.bzl | ||
structs_tests.bzl | ||
types_tests.bzl | ||
versions_tests.bzl |