when you have functions that return multiple values, because its more efficient to generate in one go when you are using ALL returned values;
like in math, where you have Sin(), Cos() and Sincos() and when you also don't use all the returned values (using '_') does the compiler optimise? does it compile multiple times so dead code is removed from the version used with some return values unneeded? i would guess it doesn't, but i wanted to check, because i seem to keep coming over this, probably the way i think, seems to me to reduce the solution space. also this seems to, in some ways, overlap with generics, particularly if there were new language features that let you specify some high level/simple code path changes, things specific to the problem that the compiler could never determine. i guess with code generation its possible, but that doesn't feel like the best way to go. i could have tested for this but am also interested in all architectures/future developments/other ways to achieve this. thanks. -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/golang-nuts/3369daf2-2cbd-4390-875b-e62eb4fab73ao%40googlegroups.com.