[bitc-dev] Opinions wanted: Infix shift operators
Jonathan S. Shapiro
shap at eros-os.org
Mon Aug 9 15:42:34 PDT 2010
On Mon, Aug 9, 2010 at 2:31 PM, Christopher Gilbreth
<cngilbreth at gmail.com>wrote:
>
> If you pass in the items to be formatted as a tuple, you shouldn't need to
> overload on arity, right?
>
> printf("hello %s %s %s", ("Shap", "Ben", "Chris"))
>
Right. Now you need to make printf into a typeclass method and overload on
the tuple type. One problem with this is that you can't get a type-based
correlation between the format string and the rest of the arguments without
a fair bit of thuggery.
The IOStream-style syntax doesn't have this limitation, and if properly
optimized it's potentially more efficient than the C-style streams design.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.coyotos.org/pipermail/bitc-dev/attachments/20100809/c7a76d51/attachment.html
More information about the bitc-dev
mailing list