On Wednesday, 26 March 2014 at 11:08:45 UTC, Andrej Mitrovic
wrote:
On 3/26/14, Kagamin <[email protected]> wrote:
On Tuesday, 25 March 2014 at 17:58:45 UTC, bearophile wrote:
I think total removal of the comma operator could offer more
readable D code.
No, complete removal will make code less readable. Why can't
you
read commas?
Have you never experienced this bug before?
enum vals = [
"afoo01foo01",
"bbar02foo02",
"cdoo03foo03",
"dfoo01foo04",
"ebar02foo01",
"fdoo03foo02",
"gfoo01foo03",
"hbar02foo04",
"aidoo03foo01"
"jfoo01foo02a",
"kbar02foo03",
"ldoo03foo04",
];
This has nothing to do with the comma operator, but what it has
to do
is with readability. The comma is easily misplaced.
I have done that so many times in Python. It's much harder to
catch in Python too, due to dynamic typing.