It's extremely difficult to play guitar with longs nails and even if you manage to do it, you'll be using bad technique which could lead to bigger issues down the road. You need to be able to "fret" the guitar (press down the strings) pretty forcefully to get a good tone. This usually requires using the pads of your fingers, and so even shorter length nails can hinder this. Long nail would make it extremely difficult.