zeek/scripts
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
..
base Prefer explicit construction to coercion in record initialization 2025-07-11 16:28:37 -07:00
policy Prefer explicit construction to coercion in record initialization 2025-07-11 16:28:37 -07:00
site site/local: Switch to detect-sql-injection 2025-05-20 16:24:28 +02:00
spicy [Spicy] Bump auxil/spicy/ to latest development snapshot. 2025-07-09 17:36:05 +02:00
zeekygen Add a VLAN-aware flow tuple implementation. 2025-06-25 13:19:26 +02:00
CMakeLists.txt Use the same rules as cmake submodule to reformat Zeek 2023-05-09 08:31:43 -07:00
test-all-policy.zeek Add a VLAN-aware flow tuple implementation. 2025-06-25 13:19:26 +02:00