Positional chess understanding in the early game As Black, when given a choice of taking the White's pawn, for what reason should I consider taking d5 pawn with e6 pawn? Wouldn't this open up the king's file and put it at risk of being attacked in the future?
[FEN &quot;rnbqkb1r/pp3ppp/2p1pn2/3P4/3P4/2N1P3/PP3PPP/R1BQKBNR b KQkq - 0 1&quot;]
The main point of the engine recommending exd5 is because it opens up the diagonal from c8 to h3. By playing an early e6, the bad light squared bishop is really weak and has terrible scope, which is why taking with the e pawn could be followed with developing your bishop onto a square on a more open, free diagonal in the future. As long as you castle and don't open up any kingside files, you should be good. As long as your king is safe, an open e file won't do much damage, as his e-pawn is stuck on e-3 (notice white's dark squared bishop; it's basically stuck).
fyi: The whole point of the Slav Defense is to decline the Queen's Gambit with a pawn without playing e6 to block your light squared bishop.