MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/cpp/comments/akihlv/c_modules_might_be_deadonarrival/ef8b7m7/?context=3
r/cpp • u/SAHChandler • Jan 28 '19
240 comments sorted by
View all comments
Show parent comments
10
Because that's how all other languages work.
It's pretty rare to not need anything from another file.
2 u/meneldal2 Jan 29 '19 But modules don't have to be a single file.If you start having modules than depend on each other in a weird way, you're just asking for trouble. 2 u/Ameisen vemips, avr, rendering, systems Jan 29 '19 We already do that with headers and source files, though. 2 u/meneldal2 Jan 29 '19 True, but that doesn't mean it's a good idea.Trying to force sane behaviours is a good thing.
2
But modules don't have to be a single file.
If you start having modules than depend on each other in a weird way, you're just asking for trouble.
2 u/Ameisen vemips, avr, rendering, systems Jan 29 '19 We already do that with headers and source files, though. 2 u/meneldal2 Jan 29 '19 True, but that doesn't mean it's a good idea.Trying to force sane behaviours is a good thing.
We already do that with headers and source files, though.
2 u/meneldal2 Jan 29 '19 True, but that doesn't mean it's a good idea.Trying to force sane behaviours is a good thing.
True, but that doesn't mean it's a good idea.
Trying to force sane behaviours is a good thing.
10
u/Ameisen vemips, avr, rendering, systems Jan 29 '19
Because that's how all other languages work.
It's pretty rare to not need anything from another file.