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

I see keyword arguments as slightly different though. The keyword is like the parameter name. The value is still a plain integer and (theoretically) susceptible to being given the wrong integer. In contrast, unit types allow for hard checking by the compiler.

In practice, with good naming it won't make much difference and only shows up when comparing the docs (or intellisense) for an API with how it is actually used.




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

Search: