Add a command line option to print the Pancake news file - #1470
Add a command line option to print the Pancake news file#1470IlmariReissumies wants to merge 13 commits into
Conversation
|
I suppose this assumes that |
|
Yes that's a good point, this works so long as we're disciplined about updating I think that's difficult to enforce entirely automatically, because there's no good check for figuring out which changes are user-facing. But there are things that would probably help. Maybe a github hook that checks if PRs make any changes in the Even so I guess this at least gives people a lower bound on the features they have :) |
|
Is there a simple way to make it more machine-readable? The motivation for the issue is to improve the compatibility of Pancake programs, i.e. to enable programmers to write a single Pancake program that selects language features based on availability, similar to feature test macros in C. In the existing form, I guess I would write another wrapper to retrieve the latest date in the news, and then use the date to query a pre-defined list of dates to know the supported features. |
I can't quite decide whether that is a plus or a potential cause for confusion, but either way, that only won't be good enough to close the issue. I guess we can keep looking into more complete solutions. @KurtWu10 would you like to add something on the motivation to the issue #1469 ? |
Don't see why not. For example, the |
|
Yes, that would work. |
|
Okay, that's added now! Please check if it looks good to you :) I added annotations for enabling and disabling features to
|
|
Thanks for the work, it looks helpful. I noticed that some important features are not in the |
|
Good catch! I added one retroactively. |
After discussion with @myreen and the Pancake meeting, printing the entirety of `NEWS.md` has the unfortunate side effect of storing a ~15kb (and growing) string in memory, that needs to be copied over every time the GC runs. Therefore, this commit keeps only the `--pancake_feature=T` query and drops the option to print `NEWS.md.` The usage notes instead explain where the news can be found.
|
In the most recent commit I dropped the |
The flag is
--pancake_news. Close #1469