<
danie...@gmail.com> wrote:
> On Monday, November 23, 2015 at 9:36:29 AM UTC-5, Perry Metzger
> wrote:
> >
> > On Mon, 23 Nov 2015 06:19:48 -0800 (PST) "Daniel T."
> > <
danie...@gmail.com <javascript:>> wrote:
> > > Well technically, the answer Jens gave you does not answer the
> > > original question you asked. `String(format:)` is calling into
> > > Objective-C and you asked for a way to do it that doesn't do
> > > that.
> > >
> > > Still, it exists and does what you need so there's no problem
> > > using it.
> >
> > Hrm. I note that this takes an array of CVarArgType. Does that
> > mean that you're potentially type unsafe if there is a mismatch
> > between the passed argument and the format string, just as in C?
>
> The answer is a qualified "no." The compiler understands the format
> specifiers, checks the types and will emit warnings to let you know
> if the types don't match the specifiers. Of course if you are in
> the habit of ignoring warnings you still might have a problem.
(since Swift is supposed to be strictly typed). Is that because