Use of `event:attrs()` deprecated

replaced by event:attrs

the compiler will replace the function call with the value reference and place a warning message in the log

the value of event:attrs is a map from attribute name to attribute value for the current event being processed

This means that the event library now provides one value, one function, and one action

  • the value event:attrs which is the map of all event attributes
  • the function event:attr which returns the value of an event attribute given its name
  • the action event:send which causes an event to be sent to some other pico on this or another pico engine

Note that event:attr("attribute-name") will return the same event attribute value as event:attrs{"attribute-name"}