Consider the following sentences

> 
> We came here to learn English.
> 
> 
> We came here for learning English.
> 
> 
> 

I suppose most of us here would agree that both of them are grammatically correct.

And I thought they mean the same thing until a native speaker told me there is slight difference depending on contexts.

However, he didn't explain the difference and contacts. Could someone help with me on this?