
Sept. 30, 2015
6:47 p.m.
On Thu, Oct 1, 2015 at 2:41 AM, Jeff Hardy <jdhardy@gmail.com> wrote:
'def' is currently short for 'define', which would be too confusing. Spelling out 'default' isn't so bad, though:
self.x = x default []
And if it's going to be that long anyway, we might as well just put a `default` function in the builtins:
self.x = default(x, [])
I'd prefer it to have language support rather than a builtin, so it can shortcircuit. It won't often be important, but it would be nice to be able to put a function call in there or something. ChrisA