<html><head><meta http-equiv="content-type" content="text/html; charset=utf-8"></head><body dir="auto"><div>Definite +1 from me.</div><div id="AppleMailSignature">Check out elaboration functions from hardware description languages.</div><div id="AppleMailSignature">Loading constants from files during compile is incredibly useful.</div><div id="AppleMailSignature"><br></div><div><br>On 9 Dec 2015, at 08:47, T.J. Usiyan via swift-evolution <<a href="mailto:swift-evolution@swift.org">swift-evolution@swift.org</a>> wrote:<br><br></div><blockquote type="cite"><div><div dir="ltr">+1<div><br></div><div>I would like to end up with something incorporating quoted terms, macros, and compile time evaluation.</div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Dec 9, 2015 at 1:10 PM, Alejandro Martinez via swift-evolution <span dir="ltr"><<a href="mailto:swift-evolution@swift.org" target="_blank">swift-evolution@swift.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Yeah definitely nothing for Swift 3, totally understandable.<br>
I was just curious if it was feasible or just a simple NONO.<br>
Thanks for answering!<br>
<br>
Sent from my iPad<br>
<div class="HOEnZb"><div class="h5"><br>
> On 09 Dec 2015, at 05:26, Chris Lattner <<a href="mailto:clattner@apple.com">clattner@apple.com</a>> wrote:<br>
><br>
><br>
>> On Dec 8, 2015, at 12:01 PM, Alejandro Martinez via swift-evolution <<a href="mailto:swift-evolution@swift.org">swift-evolution@swift.org</a>> wrote:<br>
>><br>
>> Hi everyone,<br>
>><br>
>> Don't take this mail as an oficial proposal but just as some food for thought, I wanted to talk about this to see what you think about it.<br>
>><br>
>> I've been following the list since the "Open Source Day" and I've seen in many instances proposals that could have been solved by a macro system, being just a temporal solution since everything can't be done just now or being a permanent solution if that macro system existed. Some of them may include the thread about "code smells", automatic wrapper synthesis or deriving, or even the topic about forwarding calls automatically to an inner object.<br>
>><br>
>> My thinking was how difficult or viable it would be to run Swift code from our programs at compile time. I'm not experienced enough on computer languages to see it. The first time that I saw this was in a video from Jonathan Blow (<a href="https://www.youtube.com/watch?v=UTqZNujQOlA" rel="noreferrer" target="_blank">https://www.youtube.com/watch?v=UTqZNujQOlA</a>) and it looked like a really good idea. It would be much better that force people to learn another language (the macro language) or any other kind of preprocessor, instead you could use all your knowledge but just at compile time. It can also have good usages apart form generating code, but generating data that can be generated and known at compile time. And allow even to improve the usage of the language (maybe DSL) at a library level.<br>
><br>
> This is something that could be very interesting! Unfortunately it is definitely out of scope for Swift 3.<br>
><br>
> -Chris<br>
_______________________________________________<br>
swift-evolution mailing list<br>
<a href="mailto:swift-evolution@swift.org">swift-evolution@swift.org</a><br>
<a href="https://lists.swift.org/mailman/listinfo/swift-evolution" rel="noreferrer" target="_blank">https://lists.swift.org/mailman/listinfo/swift-evolution</a><br>
</div></div></blockquote></div><br></div>
<img src="https://u2002410.ct.sendgrid.net/wf/open?upn=XyCJWhfMItFjSNmahITOcx4LBmSHMDVf-2BybTJY6eS3pypLlCXrw5xfWXZ4qWgmQfdoU-2BbjyCJc0XAJqpCqy42-2B2zkwKfyXYjgaxja0kxZXsVo1FeKorU7YiMZRkZIlgROdH3uaXbvk6Yc095hd63ib9rrmKWm9sDL2ocCZI5vspFg40hrmoxSzcu5jIKK75POHOi-2B2N8765ijexZ70BIPA-3D-3D" alt="" width="1" height="1" border="0" style="height:1px !important;width:1px !important;border-width:0 !important;margin-top:0 !important;margin-bottom:0 !important;margin-right:0 !important;margin-left:0 !important;padding-top:0 !important;padding-bottom:0 !important;padding-right:0 !important;padding-left:0 !important;">
</div></blockquote><blockquote type="cite"><div><span>_______________________________________________</span><br><span>swift-evolution mailing list</span><br><span><a href="mailto:swift-evolution@swift.org">swift-evolution@swift.org</a></span><br><span><a href="https://lists.swift.org/mailman/listinfo/swift-evolution">https://lists.swift.org/mailman/listinfo/swift-evolution</a></span><br></div></blockquote></body></html>