« first day (175 days earlier)      last day (758 days later) » 

10:50 AM
@OneOfOne generics are important when you want a custom container or an algorithm. even something as trivial as the map and reduce "algorithms" or tree-based sets/dicts
 
 
2 hours later…
1:13 PM
@Abyx that's what interfaces are for, don't get me wrong, I proposed to add a generic keyword and all but interfaces are still just fine, take a look at golang.org/pkg/container/heap
@Abyx also you can always implement the map/reduce for one type, copy the file and run gofmt on it to add an extra type.
 
1:48 PM
@OneOfOne not funny =(
@OneOfOne interfaces require dynamic casts. it's makes the language into a dynamic typed language.
 
2:20 PM
@Abyx Type assertions aren't type casts, golang.org/doc/effective_go.html#type_switch and blog.denevell.org/golang-interface-type-assertions-switch.html and again you can have a specific interface for your type, it's not that complicated.
@Abyx I noticed you've been randomly bashing Go without actually working with it
 
@OneOfOne you noticed it wrong.
@OneOfOne thing is that either you move type checks to runtime, or you use copy-pasting.
 
@Abyx I understand that, and while it's an annoyance, it's just that, an annoyance that you can easily work around. Saying go is terrible and not recommended because you don't know how to cp mr-type1.go mr-type2.go and run gofmt on the second file is just silly.
 
@OneOfOne you're not kidding, right?
 
Also I'm not sure why do you think development has stopped, they have been busy porting the runtime from C to Go and enhancing the GC.
not really, no
 
@OneOfOne it's compiler/runtime library development, not development of the language itself.
 
2:30 PM
@Abyx ah ok, I misunderstood that comment then
@Abyx just for the record there have been tiny language changes, but yeah major things won't happen before v2.0
 
@OneOfOne so you're telling me to copy code? as a replacement of generic programming? sorry I can't just believe in that.
 
@Abyx I'm saying it's a valid workaround until there's proper generics support, hardly a deal breaker and not hard at all.
 
no, copypasta can never be a workaround.
 
 
6 hours later…
user986408
8:34 PM
how can i throw an exception/error (with a message) that automatically stops the program?
 
user986408
oh it's log.Fatal()
 

« first day (175 days earlier)      last day (758 days later) »