Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

This makes me want to try out "ellipsis" arguments. The ellipsis tells the compiler that the intended arguments for a function are the only ones available in scope that agree with the types required for the function, so they can be inferred.

static URL buildSiteURL() {

  Website website = getMyWebSite();

  String path = "styles.css";

  return createUrl(...);

}


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

Search: