If it works like Emacs paredit, the default for just hitting `(` would be
let y = f()(2, 3)
but there should be a different command to do (`alt-(` in paredit)
let y = f((2, 3))
There should of course also be "slurp" and "barf" commands to add or remove items from the parentheses if you do the wrong thing first (or want to wrap multiple things in the parentheses)
That would depend on the language. Paredit is mainly made for Lisp where that would be legal (aside from the comma between 2 and 3). In some other languages that could also be allowed for casts.