Hacker News new | past | comments | ask | show | jobs | submit login

Printf format is great, but there's an issue

You're repeating yourself. Why? Because C can't know what types you are passing to it.

So you have to explicitly do '%d' or '%s' to let printf know what this is.

But yes, I think it's easier to type than {0}




In Python's old style you can use %s everywhere, and Python will figure out the types.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: