buzz icon indicating copy to clipboard operation
buzz copied to clipboard

Deep List/Map as default values

Open giann opened this issue 2 years ago • 0 comments

List and maps provided as default function argument or default object property value are cloned at runtime. We don't allow list/map containing themselves list and maps. We could allow it by doing a deep clone rather than a shallow one. It could be costly if user provides a very deep default value but we could argue that this is unlikely.

giann avatar Feb 08 '23 15:02 giann