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

Lines of code in type declarations isn't an interesting metric. Type safety, however, is.


Said otherwise, the python oneliner is likely not what you want, in real life you'd have to check for fields existence, purpose defaults or warn, etc. So you must likely end up with a few kings of code anyways.


Context of this thread is prototyping. For prototyping that one-liner is exactly what you want; if the fields don't exist just dump a stack trace and fix your code to use stuff that does exist.




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

Search: