Hacker News new | ask | show | jobs
by JoeNr76 2557 days ago
The syntactic sugar here is that map and parseInt can be called without specifying all parameters. (But, since JS has no function overloading, it's the same function you're calling.)
1 comments

Optional/defaulted function arguments are an extremely useful feature of many programming languages; are you arguing that they are always harmful?
Point me in my remark where I said that they are harmful. I was answering the question what the syntactic sugar was.