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 < golang-nuts@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+unsubscr...@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/CAEkBMfF%3Dzy9KVLBTzgOA0-EZXKaiMF_C36fDh4Ro6E%3DgsE_uwg%40mail.gmail.com.