Hacker News new | ask | show | jobs
by LefterisJP 5233 days ago
Hey all,

I am the author of the linked blog. Many nice comments in here, but may I start by a question of my own about hackernews itself. I had submitted this link myself 6 days ago after making the post. Can a link be resubmitted multiple times? The title was a bit different but the link was the same. I am new to the site and want to learn the way it works.

As for the comments by many people, it's a given that this will not appeal to all. Heck to most people especially C++ only programmers it will look ugly. The fact is that if for one reason or another you want to provide functions that have default arguments this is a neat and nice way that works for C99.

As for needing default arguments, well there might be cases where having them is just a way to spoil or even confuse the programmer. But consider an API. An API of a GUI library. Do you REALLY want to be giving all the customizations offered by the library for every single widget/element? Or do you want a TextBox of size(100,100) at position(200,50) and you are done by letting the default arguments handle all the rest?

1 comments

It looks like the submitter added a & to the end of the URL. This is generally considered to be cheating. I guess it worked out this time though... There are probably a few articles out there that will tell you the best time to submit a link. If you're really worried about getting karma/clicks, you should consult one of them.
No no, I don't care about karma, just discovered the site recently and wanted to learn how it works. Exposure on the other hand is always a nice thing. I am actually really glad to the submitter since this generated a nice discussion in the blog itself and made me fix a few things I was wrong about.