Folding Erlang Records

Folding Erlang Records April 27 2015 When developing the new RabbitMQ Delayed Exchange plugin I had the problem of extracting values from deeply nested records like the one created for message deliveries in RabbitMQ. Imagine you have the following record from which you need to access the headers filed of the innermost #'P_basic' record. #delivery { message = #basic_message { content = #content { properties = #'P_basic' { headers = H }}}}. Of course we could have pattern matching on a function header to extr

添加评论
点赞收藏
点踩分享查看原文
评论
?
参与讨论