[Issue 2659] Remove the comma operator
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Fri Feb 28 01:18:36 PST 2014
https://d.puremagic.com/issues/show_bug.cgi?id=2659
w0rp <devw0rp at gmail.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |devw0rp at gmail.com
--- Comment #6 from w0rp <devw0rp at gmail.com> 2014-02-28 01:18:35 PST ---
+1 to this. Also, I wouldn't use a comma in future for tuple syntax with
parentheses. I think that was a mistake in Python. Supposing this was
translated to D as it is in Python...
auto x = (); // empty tuple
auto x = (1); // value 1
auto x = (1,) // tuple of size 1
auto x = (1, 2) // pair
After so many years, I still make mistakes regularly with this.
--
Configure issuemail: https://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
More information about the Digitalmars-d-bugs
mailing list