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

I would expect, given you have described an operation on 3 different data structures using different words, that it would also demand 3 different kinds of syntax/denotation no? Your own language requires as much. Why not JS?


Well in python by example you use for x in myobject to iterate and that's it, no Object.entries(myobj) vs. mymap.entries , lua is even more consistent, ..


Hey what about map and comprehension? This is a language that claims to value "one way to do things"


It’s not uncommon in Python to iterate through dict.items() (or dict.keys()) which is basically the same thing.




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

Search: