Re:C++ has become a scripting language
by crntaylor on Wednesday October 16, 2013 @12:56PM
(#6560734)
On your first point; I was matching the behaviour of the C++ program in the blog post, which allows any number of command line arguments but only uses the first two.
On your second point, I actually thought about writing the whole thing as
Re:C++ has become a scripting language
by nightski on Wednesday October 16, 2013 @06:58PM
(#6562610)
Agreed, it does and you made the right choice. But in reality once you know Haskell - bind is a very common operation and reading this version is very natural.
On your second point, I actually thought about writing the whole thing as
but decided that that's exactly the kind of thing that gets Haskell programmers a bad reputation.