D vs Go in real life

Chris Cain clcain at uncg.edu
Wed Dec 4 03:11:59 PST 2013


On Wednesday, 4 December 2013 at 10:33:02 UTC, eles wrote:
> http://blog.golang.org/gos-declaration-syntax
>
> but they give a nice convoluted counter-example; read this:
>
> int (*(*fp)(int (*)(int, int), int))(int, int)

Yep. Spiral reading on this:

fp is a pointer to a function taking in ( a pointer to a function 
taking in an int and another int returning an int ) and an int 
returning a pointer to a function taking in an int and an int 
returning an int.

Although it's an artificially really complex example, it's 
ridiculous you have to read it in a spiral to understand it.


More information about the Digitalmars-d mailing list