Decorating with a side effect -- Krzysztof Ostrowski

A taste of functional stack of effects.

Decorating with a side effect

by Krzysztof Ostrowski

From the article:

Logging is one of such overused features, that leads to costly side effects (consider distributed logging, a DLT, prevalent in automotive industry). This article describes a technique that is used to extract side effects brought by logging, and then compose with them back in a well defined manner.

Add a Comment

You must sign in or register to add a comment.

Comments (1)

0 0

patricer said on Feb 1, 2020 07:30 AM:

I could not find a way to inform the author (issues disabled on the Github page, twitter handle or email unknown), but there's a small typo in the Decorate section where this:

make_log(foo(T{))) -> bool

... was probably meant to be:

make_log(foo(T{})) -> bool

... so if you have a way to inform the author, please feel free to do so