[bitc-dev] Opinions wanted: Infix shift operators

Christopher Gilbreth cngilbreth at gmail.com
Mon Aug 9 14:31:57 PDT 2010


On Thu, Jul 29, 2010 at 1:40 AM, Jonathan S. Shapiro <shap at eros-os.org>wrote:

> On Wed, Jul 28, 2010 at 8:09 PM, Ben Kloosterman <bklooste at gmail.com>wrote:
>
>> A string.FormatN would allow this in a single parse with no mutables. And
>> it
>> would handle a large string eg html /xml as well as a small one. It can
>> also
>> easily check that all parameters have been entered without the counter.
>>
>
> Yes, but that requires overload-on-arity, and I've stated three times in
> this discussion that I'm not going to
>

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"))

Or with the currying syntax:

printf "hello %s %s %s" ("Shap", "Ben", "Chris")

I'm assuming here that the tuple would not have to box anything, since the
types would be known at compile time.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.coyotos.org/pipermail/bitc-dev/attachments/20100809/5720fcf4/attachment.html 


More information about the bitc-dev mailing list