<font face="Verdana,Arial,Helvetica,sans-serif" size="2"><div>Hi Tony, </div><div><br></div><div>I have a question. </div><div><br></div><div><span style="font-family: 'Default Sans Serif', Verdana, Arial, Helvetica, sans-serif;">>> <i>Some of it is pretty tricky to implement without the dynamic behavior of ObjC though.</i></span><br><font face="Verdana,Arial,Helvetica,sans-serif" size="2"><font><font><div class="socmaildefaultfont" dir="ltr"><div class="socmaildefaultfont" dir="ltr"><div class="socmaildefaultfont" dir="ltr"><div dir="ltr" style="font-style: normal;">I guess you were referring to something like "<span class="bp" style="font-family: Courier, Monaco, monospace; font-size: 16px; box-sizing: border-box;"><font color="#cb4b16">NSExpression</font></span><span class="p" style="font-family: Courier, Monaco, monospace; font-size: 16px; box-sizing: border-box;"><font color="#586e75">(</font></span><span class="nl" style="font-family: Courier, Monaco, monospace; font-size: 16px; box-sizing: border-box;"><font color="#268bd2">format</font></span><span class="p" style="font-family: Courier, Monaco, monospace; font-size: 16px; box-sizing: border-box;"><font color="#586e75">:</font></span><span class="s" style="font-family: Courier, Monaco, monospace; font-size: 16px; box-sizing: border-box;"><font color="#2aa198">"FUNCTION(4.2, 'factorial')"</font></span><span class="p" style="font-family: Courier, Monaco, monospace; font-size: 16px; box-sizing: border-box;"><font color="#586e75">)</font></span>" where `factorial` is a function defined on an extension of NSNumber. Now, this translation of a string to a function handle/pointer seems quite intimidating to me, in the Swift context :-) </div><div dir="ltr" style="font-style: normal;">Are there any known approaches? Is there any kind of general guidance you'd give here? </div><div dir="ltr" style="font-style: normal;"><br></div><div dir="ltr" style="font-style: normal;">Thank you!</div><div dir="ltr" style="font-style: normal;"><br></div><div dir="ltr" style="font-style: normal;"><font face="Sans Serif, Verdana, Arial, Helvetica, sans-serif">Pushkar N Kulkarni,</font></div>
<div dir="ltr" style="font-style: normal;"><font face="Sans Serif, Verdana, Arial, Helvetica, sans-serif">IBM Runtimes</font></div><div dir="ltr" style="font-style: normal;"><font face="Sans Serif, Verdana, Arial, Helvetica, sans-serif"><br></font></div><div dir="ltr"><font face="serif, Times New Roman, Times, serif"><i>Simplicity is prerequisite for reliability - Edsger W. Dijkstra</i></font></div>
<div dir="ltr" style="font-style: normal; font-size: 10.5pt; font-family: Arial;"><br></div></div></div></div></font></font></font></div><br><br><font face="Default Sans Serif,Verdana,Arial,Helvetica,sans-serif" size="2" color="#000000"><font color="#990099"><a href="mailto:-----swift-corelibs-dev-bounces@swift.org" target="_blank">-----swift-corelibs-dev-bounces@swift.org</a> wrote: -----</font><div class="iNotesHistory" style="padding-left:5px;"><div style="padding-right:0px;padding-left:5px;border-left:solid black 2px;">To: Nethra Ravindran <<a href="mailto:nethraravindran94@gmail.com" target="_blank">nethraravindran94@gmail.com</a>><br>From: Tony Parker via swift-corelibs-dev <swift-corelibs-dev@swift.org><br>Sent by: <a href="mailto:swift-corelibs-dev-bounces@swift.org" target="_blank">swift-corelibs-dev-bounces@swift.org</a><br>Date: 01/12/2017 09:44PM<br>Cc: <a href="mailto:swift-corelibs-dev@swift.org" target="_blank">swift-corelibs-dev@swift.org</a><br>Subject: Re: [swift-corelibs-dev] Need of inputs for NSExpression<br><br><!--Notes ACF
<meta http-equiv="Content-Type" content="text/html charset=utf8">-->Hi Nethra,<div class=""><br class=""></div><div class="">Thanks for your interest!</div><div class=""><br class=""></div><div class="">Probably the best place to get started would be to take a look at our documentation about NSExpression. Some of it is pretty tricky to implement without the dynamic behavior of ObjC though.</div><div class=""><br class=""></div><div class="">- Tony</div><div class=""><br class=""></div><div class=""><div class=""><div><blockquote type="cite" class=""><div class="">On Jan 12, 2017, at 4:24 AM, Nethra Ravindran via swift-corelibs-dev <<a href="mailto:swift-corelibs-dev@swift.org" class="">swift-corelibs-dev@swift.org</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><div dir="ltr" class=""><div style="font-family: helveticaneue; font-size: 12px;" class="">Hi All,<br class=""></div><div style="font-family: helveticaneue; font-size: 12px;" class=""><div style="font-family:helveticaneue" class=""><br class=""></div><div style="font-family:helveticaneue" class="">This is Nethra Ravindran and I’m a university student doing my internship. I would like to contribute to Swift Foundation. I have looked upon NSExpression and I am interested in contributing the implementation. I would be very thankful if I could get some pointers about it.</div><div style="font-family:helveticaneue" class=""><br class=""></div><div style="font-family:helveticaneue" class="">Thank you in advance for your help!</div><div style="font-family:helveticaneue" class=""><br class=""></div><div style="font-family:helveticaneue" class="">Regards,</div><div style="font-family:helveticaneue" class="">Nethra Ravindran</div><div style="font-family:helveticaneue" class=""><br class=""></div></div></div>_______________________________________________<br class="">swift-corelibs-dev mailing list<br class=""><a href="mailto:swift-corelibs-dev@swift.org" class="">swift-corelibs-dev@swift.org</a><br class=""><a href="https://lists.swift.org/mailman/listinfo/swift-corelibs-dev" target="_blank">https://lists.swift.org/mailman/listinfo/swift-corelibs-dev</a><br class=""></div></blockquote></div><br class=""></div></div><div><font face="Courier New,Courier,monospace" size="3">_______________________________________________<br>swift-corelibs-dev mailing list<br><a href="mailto:swift-corelibs-dev@swift.org" target="_blank">swift-corelibs-dev@swift.org</a><br><a href="https://lists.swift.org/mailman/listinfo/swift-corelibs-dev">https://lists.swift.org/mailman/listinfo/swift-corelibs-dev</a><br></font></div></swift-corelibs-dev@swift.org></div></div></font></font><BR>