On 11/20/12 2:48 AM, thedeemon wrote:
[snip]
"one two three".split.map{|s| s.reverse}.join(' ')
in Ruby

print . unwords . map reverse . words $ "one two three"
in Haskell

"one two three" |> split " " |> List.map reverse |> String.join " " |>
print_string
in OCaml
and something similar and even without dots in Scala.
Ease of chaining functions together is one of the things that make those
languages so pleasant to work with. I love to have the same in current D
and it would be a pity to lose it due to a clash with some old-fashioned
tradition.

A very good argument. Thanks!

Andrei

Reply via email to