<div dir="ltr">One more comment: May be ln (natural log) should be there alongside log.</div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Jan 20, 2015 at 9:59 PM, Ketan Maheshwari <span dir="ltr"><<a href="mailto:ketan@mcs.anl.gov" target="_blank">ketan@mcs.anl.gov</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Neat!<div><br><div>Comments:</div><div><br></div><div>-- Statistical functions in a standard library seem out of place to me. One may ask, why just stop with statistical functions and not also include vector and matrix related functions such as cross and dot products or fancier stuff like finding eigen values, etc.</div></div><div><br></div><div>-- sqrt and cbrt seem redundant as we already provide pow with float exponent.</div><div><br></div><div>Regards,</div><div>Ketan</div></div><div class="gmail_extra"><br><div class="gmail_quote"><span class="">On Tue, Jan 20, 2015 at 6:56 PM, Mihael Hategan <span dir="ltr"><<a href="mailto:hategan@mcs.anl.gov" target="_blank">hategan@mcs.anl.gov</a>></span> wrote:<br></span><div><div class="h5"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi,<br>
<br>
I made a wiki page on github where we could discuss the standard<br>
library: <a href="https://github.com/swift-lang/swift-k/wiki/StandardLibrary" target="_blank">https://github.com/swift-lang/swift-k/wiki/StandardLibrary</a><br>
<br>
It's a draft and there are some rough edges. In particular:<br>
<br>
- regular expression support: substitutions can be done either directly<br>
or with a combination between a function that returns capture groups and<br>
a formatting function that replaces certain tokens with elements of an<br>
array. One could overload the format() function to, in addition to<br>
standard formatting specs, also support something like %s[index]. Or<br>
have a separate formatting function that only deals with this specific<br>
problem. I'm not sure.<br>
<br>
- some of the array functions may be difficult to implement as<br>
specified, or there may be different functions that solve the problems<br>
better. In particular when joining arrays of arrays, there is some<br>
freedom in how to order the elements of the resulting array.<br>
<br>
- read and write: it may not be easy to implement a read that can return<br>
any type in T. There is some precedent in other languages that support<br>
serialization for this.<br>
<br>
Anyway, I added red exclamation marks and red question marks where<br>
things aren't quite clear.<br>
<br>
I'm assuming that most of us will agree on most of the things. However,<br>
if you have a wildly different proposal, it might be wise to create<br>
another page instead of editing this one.<br>
<br>
Mihael<br>
<br>
_______________________________________________<br>
Swift-devel mailing list<br>
<a href="mailto:Swift-devel@ci.uchicago.edu" target="_blank">Swift-devel@ci.uchicago.edu</a><br>
<a href="https://lists.ci.uchicago.edu/cgi-bin/mailman/listinfo/swift-devel" target="_blank">https://lists.ci.uchicago.edu/cgi-bin/mailman/listinfo/swift-devel</a><br>
</blockquote></div></div></div><br></div>
</blockquote></div><br></div>