by _ikke_ · 9mo ago · 0 comments
> The built-in new function, which creates a new variable, now allows its operand to be an expression, specifying the initial value of the variable.
So no need for separate helpers anymore to instantiate a pointer to a literal.
I have a tech debt TODO on my backlog to rationalize null usage (waiting on encoding/jsonv2) where I'll go through structs and better determine which properties should be null (or even empty) both from a JSON and DB perspective, especially with custom types in the mix. Hopefully reducing the amount of possible values the TS frontend needs to handle...