News for hackers. Stuff that matters.
Re:How I write HTTP services in Go after 13 years by tejinderss on Friday February 09, 2024 @03:56PM (#39320441)
The keyword here is “mutable” config object and not config data object in general. I use immutable config dataclass liberally in one of my python projects and i pass it around in all modules. Many functions rely on multiple values and instead of passing all of them as function parameters (which requires their own function typings), the dataclass has all variables with typing definitions in one place, its pretty handy design pattern.

There are no comments on this comment yet.