4 ms·
> The Go standard library is full of things that do exactly what you want them to, whereas in other languages you have to manually do it yourself. No. Python:
by codygman 10y ago
> The Go standard library is full of things that do exactly what you want them to, whereas in other languages you have to manually do it yourself.
No.
Python: toCheck.startswith(prefix)
JavaScript: toCheck.startsWith(prefix)
Haskell: prefix `isPrefixOf` toCheck
What other languages does Go compete with that don't have a "string starts with" in their standard library.
Since I feel I've proven my point about all other languages Go competes with having this function, what other helpful functions do you think Go has that it's competitors do not?