Hello!
Currently math.select in the Unity.Mathematics library takes ‘a’, ‘b’, and ‘c’…
How about the variables in the function get renamed on Unity’s side? It wouldn’t affect the output code at all, but it’d make things so much easier to remember. It’s kinda easy to remember that it’s the “same way as a lerp, but boolean”, but it’s also kinda easy to forget, 'coz it’s the opposite way round to a C# “?”, which is often what I’m converting from when moving over to Burst/Jobs/math. so, my suggestion is, instead of the relatively meaningless ‘a’, ‘b’ and ‘c’, it’s:
either:
math.select(float trueResult, float falseResult, bool condition)
or:
math.select(float f, float t, bool c)
or:
math.select(float f, float t, bool s)
basically anything that gives you the reminder that the first parameter is the one you’ll get on ‘false’, and the second one is the one you’ll get on ‘true’.
…while I’m here, it’d probably be good to change lerp from x,y,s to a,b,t (or a,b,s) - because, while it really doesn’t matter what letters we use here, x and y are pretty highly used & have a strong meaning associated with them.
well aware this doesn’t change my usage, my end code etc… - just would make things a lot clearer when trying to remember which order the parameters go in. - presumably there’s no genuine reason to not name these parameters?