There's a lot of hidden gems.
Your idea is nice in a syntactic sugar way, also, the default being a part of the dictionary rather than the get function makes it copyable.
I'll give you another gem that could be interesting: else clause in for loops
There's a lot of hidden gems.
Your idea is nice in a syntactic sugar way, also, the default being a part of the dictionary rather than the get function makes it copyable.
I'll give you another gem that could be interesting: else clause in for loops