Re:Native GUI library for Go
by skj on Friday June 06, 2014 @08:23AM
(#7857428)
Here's the kicker: you don't actually end up copy/pasting much code.
[ Parent
| on HN ]
You shouldn't be copy/pasting ANY code in a language created after 2000.
It's a slippery slope ("oh it's fine, I'm only copy/pasting N file(s)" where N slowly increases) which I don't want to go down.
Re:Native GUI library for Go
by stcredzero on Friday June 06, 2014 @12:32PM
(#7858896)
Can you think of 3 specific examples and quantify the fan-out?
Re:Native GUI library for Go
by stcredzero on Friday June 06, 2014 @12:55PM
(#7859039)
Ah yes, I've run into this. It's certainly not some kind of "rabbit hole." So basically, there's a few lines of boilerplate for each time you want to sort something. So this is O(1) additional typing per sorted type, which is what it would be for generics. You're trying to kill your argument with faint support?
EDIT: Granted, it is an unusual formulation, and far less convenient.
Re:Native GUI library for Go
by stcredzero on Friday June 06, 2014 @05:15PM
(#7860312)
Ho hum. Same arguments apply. Also O(1) per type, just like generics.