Re:C++ – From goto to std::transform
by pathikrit on Friday April 11, 2014 @04:14AM
(#7571737)
After coding in languages in like Scala/Python for a while, it took me a while to parse this. Scala equivalent: `def square(a: List[Int]) = a map {i => i*i}`
[ Parent
| on HN ]
Re:C++ – From goto to std::transform
by douglasheriot on Friday April 11, 2014 @05:21AM
(#7571939)
After in coding in languages like C/C++/ObjC for a while, it took me a while to parse your Scale equivalent.
Personally I find the C++ much clearer – I don’t see either as that much better/worse.