Welcome to Scribd, the world's digital library. Read, publish, and share books and documents. See more
Download
Standard view
Full view
of .
Look up keyword
Like this
2Activity
0 of .
Results for:
No results containing your search query
P. 1
Extensibility and type safety in formatting: the design of xformat - Dutch HUG - 11 September 2009

Extensibility and type safety in formatting: the design of xformat - Dutch HUG - 11 September 2009

Ratings: (0)|Views: 188|Likes:
Published by Sean Leather
I talk about xformat, a library for extensible and type-safe formatting with scanf- and printf-like functions. I discussed why I went with functional dependencies over associated types. I would especially like to get feedback on the library to see how it should be further developed.
I talk about xformat, a library for extensible and type-safe formatting with scanf- and printf-like functions. I discussed why I went with functional dependencies over associated types. I would especially like to get feedback on the library to see how it should be further developed.

More info:

Published by: Sean Leather on Sep 23, 2009
Copyright:Attribution Non-commercial

Availability:

Read on Scribd mobile: iPhone, iPad and Android.
download as PDF, TXT or read online from Scribd
See more
See less

06/26/2014

pdf

text

original

 
Extensibility and type safety in formatting
The design of 
xformat 
Sean Leather11 September 2009
 
The problem with
printf 
Given
intprintf (const char
format,...)
we can write
> printf("%s W%drld!\n", "Hello", 0);Hello W0rld!
But we can also write
> printf("%s W%drld!\n", 0, "Hello");(null) W134514152rld!
unintentionally, of course. Or even
> printf("%s W%drld!\n", "Hello");Hello W134514152rld!
 
The problem with
scanf 
Given
intscanf (char
format,...)
we have the same problems as we do with
printf 
.

Activity (2)

You've already reviewed this. Edit your review.
1 thousand reads
1 hundred reads

You're Reading a Free Preview

Download
scribd
/*********** DO NOT ALTER ANYTHING BELOW THIS LINE ! ************/ var s_code=s.t();if(s_code)document.write(s_code)//-->