Functional oriented programming in D

via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Thu Jul 16 02:57:53 PDT 2015


On Thursday, 16 July 2015 at 09:52:59 UTC, ponce wrote:
> On Thursday, 16 July 2015 at 09:49:03 UTC, Jarl André Hübenthal 
> wrote:
>> Why?
>
> The syntax for delegate literals with braces is
>
>> listenHTTP(settings, (req, res) {
>> 	res.writeBody("Hello, World!");
>> });

Thanks. Those small details you forget to test before asking is a 
bit embarrassing. I blame Scala for it :) In Scala its (req,res) 
=> { ... } consistently.


More information about the Digitalmars-d-learn mailing list