[Cake] RFC: allocate without the gotos

Kevin Darbyshire-Bryant kevin at darbyshire-bryant.me.uk
Sun Nov 26 05:03:16 EST 2017

> On 26 Nov 2017, at 10:00, Jonathan Morton <chromatix99 at gmail.com> wrote:
> On a purely theoretical basis, it probably isn't as fast, because now the 'found' condition has to be tested multiple times on the fast and slow paths alike.  Only if the compiler is smart enough to transform it back the way it was…
It was done as a ‘for sh*ts’n’giggles’ exercise….which is probably why I haven’t even tried compiling it :-)
> ...and IMHO the goto version is easier to read too.
I definitely agree with that!
> - Jonathan Morton

More information about the Cake mailing list