1

On the surface, using private module fragment to separate interface and implementation looks superior over separating module interface and implementation unit in a different source file since you only have to manage single source file when using private module fragment.

But is using private module fragment simply better than separating module interface/implementation unit in a different source file as it looks? What are the trade-offs?

Lewis Liman
  • 429
  • 3
  • 9

0 Answers0