[Swift-devel] format function

Tim Armstrong tim.g.armstrong at gmail.com
Mon Apr 13 13:52:15 CDT 2015


I think the most pragmatic choice might just be to defer to the underlying
Java/Tcl formatting functions.  The commonly used formats I think are the
same, although there are probably lots of minor differences.

Getting the behavior to match exactly between T and K would require writing
our own implementations from scratch as far as I can see.

https://www.tcl.tk/man/tcl8.6/TclCmd/format.htm
http://docs.oracle.com/javase/7/docs/api/java/util/Formatter.html#syntax


In T we have a few places it's used: printf(),sprintf(), and the % format
operator.  All just use the Tcl format function.

- Tim

On 10 April 2015 at 22:15, Mihael Hategan <hategan at mcs.anl.gov> wrote:

> Hi,
>
> How exactly do we want the format function to work? I know Mike has
> expressed some dissatisfaction with trace(), so maybe this is a good
> time to talk about standardizing the formatting functions.
>
> Mihael
>
> _______________________________________________
> Swift-devel mailing list
> Swift-devel at ci.uchicago.edu
> https://lists.ci.uchicago.edu/cgi-bin/mailman/listinfo/swift-devel
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/swift-devel/attachments/20150413/4c2e3ab8/attachment.html>


More information about the Swift-devel mailing list