Hacker News new | past | comments | ask | show | jobs | submit login

Apparently it was fine to rename "flatten" to "flat," because that's what they did, but it wasn't okay to rename "flatten" to "smoosh." What's the difference?



Probably that flatten has a near-universal meaning across many programming languages, and flat is so close to flatten as to have its meaning be almost implicitly clear, whereas smoosh has absolutely zero precedent and its behavior would be completely uninferrable without looking up documentation.


I don't agree.


Me neither.


I'm staying out of it.


It actually wasn’t fine to rename flatten() to flat() - flat isn’t a verb, flatten() seems natural, and now you have to explain to everyone that yes it’s called flat() because someone on a standards committee really likes unmaintained web sites that probably have expired domains, expired certs, non paid for hosting but might run mootools.


Yah, flat() is a kind of poor name. toFlat() would be better IMO.


If I’m looking for flatten and have autocomplete, I’ll find flat but not smoosh.


Those are words. What is smoosh? Are we children?



I beg your pardon?




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

Search: