News for hackers. Stuff that matters.
Re:If Java Is Dying, It Sure Looks Awfully Healthy by nitrogen on Thursday October 10, 2013 @02:10AM (#6525947)
In C99 it's possible to use compound literals to implement something like named parameters. You create a struct with all of your parameters, and only include the ones you want to set in the compound literal. Anything not explicitly specified in the compound literal gets set to 0, so the caveat is that 0 can't be a valid value for your parameters.
Re:If Java Is Dying, It Sure Looks Awfully Healthy by epsylon on Thursday October 10, 2013 @05:30AM (#6526523)
The book 21st century C talks about that trick:

http://books.google.fr/books?id=_EdbrocXX9MC&lpg=PA183&ots=D...

Re:If Java Is Dying, It Sure Looks Awfully Healthy by j_s on Thursday October 10, 2013 @11:41AM (#6528290)