Re: [dev] Conversation with Anselm R. Garbe of suckless.org

From: Mate Nagy <mnagy_AT_port70.net>
Date: Wed, 16 Sep 2009 14:01:31 +0200

> i'd argue that closures don't mix well with the c style of programming
>
> eg if you add closures then you'd need anonymous functions then you'd
> start writing in the functional style passing around functions then
> you'd need memory management to clean up the return values and
> arguments (so you can write print(sum(map(atoi,
> split(read(filename)))))) and of course exception handling as return
> values have different purpose, not to mention multiple return values
> and sometime polymorphism is required as well with a bit more powerful
> type system with possible runtime dispatch oh and don't forget about
> module systems...
 this is all agreeable, but as some nitpicking i'd say that you don't
need exceptions; you can use monads/function combinators instead ;)

Regards,
 Mate
Received on Wed Sep 16 2009 - 12:01:31 UTC

This archive was generated by hypermail 2.2.0 : Wed Sep 16 2009 - 12:12:03 UTC