Re:Space Monkey dumps Python for Go
by sagichmal on Tuesday April 22, 2014 @05:46PM
(#7630705)
Lines of code in type declarations isn't an interesting metric. Type safety, however, is.
[ Parent
| on HN ]
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.
Re:Space Monkey dumps Python for Go
by nostrademons on Wednesday April 23, 2014 @12:29AM
(#7632103)
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.