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

Optional named parameters with default values can make nice clean calls in the common case while still allowing for the uncommon case.

As far as the IDE goes, for the sort of code I write, reading is more important than writing. When I read the code I'd rather see what it does than what I think it does.




VB used to allow you to omit optional parameters by just leaving it blank

foo(36,,,54)

sure it won't do if there are dozens but for the odd ugly case where you naughtily use optional parameters it's OK.

It sounds like there's a need for IDEs to show the parameter names all the time. They could just be inserted automatically into the display if you want to see them, or turn them off if you don't like that. Better than being always on like this proposal.




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

Search: