Hacker Newsnew | past | comments | ask | show | jobs | submit | zoodle's commentslogin

Not sure this was submitted by the original author. I forwarded a note to the repo owner pointing back here.


Any language right? Here's classic C++.

  #include <iostream>

  int main ()
  {
    std::cout << std::cin.rdbuf();
    return 0;
  }


In perl:

while (<>){ print };


    perl -pe ""


C++ does include hash functions. Of course, most will just use std::unordered_map.

http://www.cplusplus.com/reference/functional/hash/


That isn't part of the language, that's part of the standard library. Just the same as java, which has a standard hashing function, AND hash table/map.

Ultimately, where does the language end, and the standard library begin? Whats the real difference? Yeah, so C++ and Java don't have built in syntax for hash tables. That's it?


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

Search: