On Sun, Jul 14, 2013 at 4:25 PM, Ziad Hatahet <[email protected]> wrote:
> On Sun, Jul 14, 2013 at 10:09 AM, Daniel Micay <[email protected]>
> wrote:
>>
>> Scala, Go and D have compile-time checked, type-safe format strings for
>> I/O.
>>
>>
>
> Unless I am missing something, Go does not check format strings at compile
> time.
>
> --
> Ziad

Right, instead of handling invalid formatter/type combinations at
compile-time, formatters are ignored if there's no implementation of
them for that type (defaulting to reflection-based printing if not
overridden).

Rust implements it with compile-time checks though, like the other
languages. It really needs to be converted to trait-based formatters
primarily based on output streams.
_______________________________________________
Rust-dev mailing list
[email protected]
https://mail.mozilla.org/listinfo/rust-dev

Reply via email to