Module Major Version

The module file format states:

/// Serialized module format major version number.
/// Always 0 for Swift 1.x - 4.x.

I'm curious if there is any reason why that wasn't updated or if there was a decision to not update it for Swift 5?

cc: @harlanhaskins @jrose

Heh. The comment dates from before Plan for module stability, when there was a good chance that the swiftmodule binary format was going to have to turn into a stable format. At this point version number 0 continues to indicate instability, and maybe that's a good thing, but the comment, at least, should be updated.

1 Like
Terms of Service

Privacy Policy

Cookie Policy