zeek/scripts/base/frameworks
Benjamin Bannier d5fd29edcd Prefer explicit construction to coercion in record initialization
While we support initializing records via coercion from an expression
list, e.g.,

    local x: X = [$x1=1, $x2=2];

this can sometimes obscure the code to readers, e.g., when assigning to
value declared and typed elsewhere. The language runtime has a similar
overhead since instead of just constructing a known type it needs to
check at runtime that the coercion from the expression list is valid;
this can be slower than just writing the readible code in the first
place, see #4559.

With this patch we use explicit construction, e.g.,

    local x = X($x1=1, $x2=2);
2025-07-11 16:28:37 -07:00
..
analyzer Prefer explicit construction to coercion in record initialization 2025-07-11 16:28:37 -07:00
broker Prefer explicit construction to coercion in record initialization 2025-07-11 16:28:37 -07:00
cluster Prefer explicit construction to coercion in record initialization 2025-07-11 16:28:37 -07:00
config Prefer explicit construction to coercion in record initialization 2025-07-11 16:28:37 -07:00
control annotate base scripts with &is_used as needed 2022-05-26 17:39:17 -07:00
files Prefer explicit construction to coercion in record initialization 2025-07-11 16:28:37 -07:00
input Fix errors from rst linting on the generated docs 2025-01-24 11:41:36 -07:00
intel Prefer explicit construction to coercion in record initialization 2025-07-11 16:28:37 -07:00
logging Prefer explicit construction to coercion in record initialization 2025-07-11 16:28:37 -07:00
netcontrol Prefer explicit construction to coercion in record initialization 2025-07-11 16:28:37 -07:00
notice Prefer explicit construction to coercion in record initialization 2025-07-11 16:28:37 -07:00
openflow Prefer explicit construction to coercion in record initialization 2025-07-11 16:28:37 -07:00
packet-filter Prefer explicit construction to coercion in record initialization 2025-07-11 16:28:37 -07:00
reporter Prefer explicit construction to coercion in record initialization 2025-07-11 16:28:37 -07:00
signatures Prefer explicit construction to coercion in record initialization 2025-07-11 16:28:37 -07:00
software Prefer explicit construction to coercion in record initialization 2025-07-11 16:28:37 -07:00
spicy Prefer explicit construction to coercion in record initialization 2025-07-11 16:28:37 -07:00
storage Add STORAGE_ prefixes for backends and serializers 2025-04-14 10:11:13 -07:00
sumstats Prefer explicit construction to coercion in record initialization 2025-07-11 16:28:37 -07:00
supervisor Fix errors from rst linting on the generated docs 2025-01-24 11:41:36 -07:00
telemetry Prefer explicit construction to coercion in record initialization 2025-07-11 16:28:37 -07:00
tunnels Prefer explicit construction to coercion in record initialization 2025-07-11 16:28:37 -07:00