<div dir="auto"><div><div class="gmail_quote"><div dir="ltr">Ryan Joseph <<a href="mailto:ryan@thealchemistguild.com">ryan@thealchemistguild.com</a>> schrieb am Mo., 9. Juli 2018, 08:45:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><br>
<br>
> On Jul 8, 2018, at 8:50 AM, J. Gareth Moreton <<a href="mailto:gareth@moreton-family.com" target="_blank" rel="noreferrer">gareth@moreton-family.com</a>> wrote:<br>
> <br>
> With some blessing from Florian on the concept, I've set up a Wiki page discussing the design proposals for the support of pure functions, as well as some explanation on what they actually are.<br>
> <br>
<br>
What are the performance benefits? It sounds like this is a proposal for a compiler optimization which we can explicitly opt in to, but what exactly is the optimization?<br>
<br>
If nothing else I like the idea as a way to enforce a function is not accessing global state. Kind of like const for functions.<br></blockquote></div></div><div dir="auto"><br></div><div dir="auto">It would allow you to declare constants that use those functions with the compiler evaluating them at compile time. </div><div dir="auto">Also the compiler might be able to optimize such functions better especially if they're inlined. *shrugs*</div><div dir="auto"><br></div><div dir="auto">Regards, </div><div dir="auto">Sven </div><div dir="auto"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
</blockquote></div></div></div>