zeek/scripts/policy/frameworks/management
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
..
agent Fix incorrect uses of zeek:see 2025-01-01 15:35:59 +01:00
controller broker/main: Deprecate Broker::listen_websocket() 2025-04-23 14:27:43 +02:00
node Management framework: log node set in dispatch requests cleanly 2022-08-09 15:12:39 -07:00
supervisor Prefer explicit construction to coercion in record initialization 2025-07-11 16:28:37 -07:00
__load__.zeek Management framework: set defaults for log rotation and persistent state 2022-05-26 12:55:10 -07:00
config.zeek Spelling fixes: scripts 2022-11-02 17:36:39 -04:00
log.zeek Prefer explicit construction to coercion in record initialization 2025-07-11 16:28:37 -07:00
persistence.zeek Revert "Merge remote-tracking branch 'origin/topic/vern/at-if-analyze'" 2023-05-31 09:20:33 +02:00
request.zeek Spelling fixes: scripts 2022-11-02 17:36:39 -04:00
types.zeek Management framework: add metrics port in management & Supervisor node records 2024-07-08 23:05:24 -07:00
util.zeek Reorg of the cluster controller to new "Management framework" layout 2022-02-09 18:09:42 -08:00