Zulip Chat Archive
Stream: general
Topic: question on module system
Asei Inoue (Jan 06 2026 at 02:17):
I have two questions
When using the module system, all names become private by default. Does that mean the private modifier no longer has any meaning?
At the moment, the module system is not enabled unless you write module at the beginning of the file. Is there a plan to enable the module system by default in the future?
Moritz Doll (Jan 06 2026 at 02:18):
If you have a public section then everything not tagged private is public.
Kim Morrison (Jan 06 2026 at 02:28):
Asei Inoue said:
At the moment, the module system is not enabled unless you write module at the beginning of the file. Is there a plan to enable the module system by default in the future?
Probably, but there are no definite plans here. We haven't yet encouraged anyone downstream of Mathlib to move to the module system yet, but will begin doing so on the next release (when the experimental.module flag will no longer be needed). Once we've had a chance to see how that goes we will start thinking about long term defaults.
Asei Inoue (Jan 06 2026 at 02:33):
Thank you! my questions are resolved
Yaël Dillies (Jan 06 2026 at 08:08):
I am personally very eager to try the module system out in my (many) projects!
Chris Henson (Jan 06 2026 at 11:15):
CSLib has an PR (cslib#243) ready to move to the module system, we are also looking forward to trying it out!
Chris Henson (Jan 12 2026 at 17:35):
(This is now merged, and with a -5.2% improvement to performance!)
Last updated: Feb 28 2026 at 14:05 UTC