Then after a while a friend came in and did a little fix.
But things started falling apart, after a lot of digging in - you find this.
Python will join two string together in this case, not what you wanted. Always leave a trailing comma.
Couple more things:
- As Dave Cheney pointed out, using this practice has the nice effect that one line change shows as one line change in the diff since you don''t have to add a comma to the previous line.
- Go probably learned from Python and made trailing comma mandatory.
- You can see more Python "gotchas" here.
No comments:
Post a Comment