You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The motivation is stuff like this:
zip(iota(10), iota(10, 20))
.map!(t => Tuple!(int, "a", int, "b)(t))
.map!(t => with(t) a + b);
which, short of having some proper tuple unpacking syntax (that would be so, so good), is nicer than the current
.map!((t) { with(t) return a + b; });
that might seem like a small change, but I'm having a hard time selling D and functional programming to scientists with all the heavyweight syntax, they are spoiled by the inefficient but neat-looking numpy model.
The text was updated successfully, but these errors were encountered:
John Colvin (@John-Colvin) reported this on 2016-03-03T15:51:03Z
Transferred from https://issues.dlang.org/show_bug.cgi?id=15749
CC List
Description
The motivation is stuff like this: zip(iota(10), iota(10, 20)) .map!(t => Tuple!(int, "a", int, "b)(t)) .map!(t => with(t) a + b); which, short of having some proper tuple unpacking syntax (that would be so, so good), is nicer than the current .map!((t) { with(t) return a + b; }); that might seem like a small change, but I'm having a hard time selling D and functional programming to scientists with all the heavyweight syntax, they are spoiled by the inefficient but neat-looking numpy model.The text was updated successfully, but these errors were encountered: