How to simplify the code in constructing struct

See this thread for related discussion. If you’re worried about the visual noise that results from accessing deeply nested fields, you may appreciate UnPack.jl.

2 Likes