Why do some people :Connect(functionname) Example:
function OnTouch(hit)
print(hit.Name.." has touched it")
end
game.Workspace.Part.Touched:Connect(OnTouch)
I use :Connect(function() which I feel is a bit better
Example:
game.Workspace.Part.Touched:Connect(function(hit)
print(hit.Name.." has touched it")
end)
Is there any different or is this just a big debate on the coding community?

2 comments
But like some people do simple functions like the one I showed as an example, like the first example. Even the Roblox Developer Resources do it like the first one. I normally do the second one, if I need to call a function, I call the function inside the function (example 2)
I think it's just a matter of preference. I don't really think it makes a difference in performance nor behavior