Difference between AとB and AやB


Is it grammatically correct to say something like:

> 友達と遊ぶこと **や** 食べることが好きです。




To answer your question: Yes, it is grammatically correct.

* * *

For your info / what you are not clear of:

> 友達と遊ぶこと **と** 食べることが好きです。  
>  I love to eat and play with friends.  
>  (And thats all, not sure if I love to do anything else with them. )
>
> 友達と遊ぶこと **や** 食べることが好きです。  
>  I love to eat and play with friends.  
>  (Well actually there are much more I love to do with my friends but play
> and eat will be two of them.)

So the difference of と and や will be：

  * と： _list things out and that's everything of it._

  * や： _list a part of all things out that belongs to the same group._

That is also why according for some Japanese と got the nuance of more
"separating" and や feels more like things belongs to the same group.

Hope that helps.^^

