Factor Language Blog

What is a fluent interface?

Saturday, June 14, 2008

I just saw this on reddit, and I have no clue. Whatever a “fluent interface” is though, seems Factor doesn’t need one, because their 21 line example can be written a million times more clearly in 4 lines of Factor:

USING: sequences strings math.ranges io ;
{ "i" "can" "has" "cheezburger" "plz" "?" } [ " " append ] map concat "\n" append
CHAR: A CHAR: Z [a,b] reverse [ CHAR: M > ] filter [ 1string ] map "," join
append print