arrrr, i actually never tried leaving off from the end, that's something. thanks
On Saturday 10 August 2024 at 20:12:53 UTC+1 Axel Wagner wrote: > That is not possible, currently. You can only omit type parameters from > the end of the list, to have them inferred. So, in your case, you are going > to have to specify all type parameters. > > On Sat, 10 Aug 2024 at 19:26, 'simon place' via golang-nuts < > golan...@googlegroups.com> wrote: > >> any support for partial inference? (can't find/hit on syntax) >> >> like... >> >> ``` >> func X[T Integer,U Integer](t T,u U){} >> ``` >> >> when, say, t can be inferred but not u. >> >> looking for something like... >> >> ``` >> var a uint >> X[_,uint8]X(a,5)]() >> ``` >> >> -- >> 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...@googlegroups.com. >> To view this discussion on the web visit >> https://groups.google.com/d/msgid/golang-nuts/334a47a1-6eb7-43b0-9bd8-444efdd86d2an%40googlegroups.com >> >> <https://groups.google.com/d/msgid/golang-nuts/334a47a1-6eb7-43b0-9bd8-444efdd86d2an%40googlegroups.com?utm_medium=email&utm_source=footer> >> . >> > -- 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/37e782ed-f5c8-4fb1-804b-9d05b492a46fn%40googlegroups.com.