Ensure data passed to templates is immutable unless otherwise needed #24

Open
opened 2024-12-16 16:24:00 -07:00 by sashakoshka · 0 comments
Owner

Data structures passed to the template that end up being used later should not have any set methods and should be opaque or cloned if they are a dict or list etc.

Additionally, all template functions that return structures specifically for modification by the template should prefer dicts, lists, etc. where possible, and structs with public setters for situations where that wouldnt be ideal.

Data structures passed to the template that end up being used later should not have any set methods and should be opaque or cloned if they are a dict or list etc. Additionally, all template functions that return structures specifically *for* modification by the template should prefer dicts, lists, etc. where possible, and structs with public setters for situations where that wouldnt be ideal.
sashakoshka changed title from Ensure data passed to templates is immutable unless needed to Ensure data passed to templates is immutable unless otherwise needed 2024-12-16 16:27:10 -07:00
Sign in to join this conversation.
No Label
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: sashakoshka/step#24
No description provided.