-
Notifications
You must be signed in to change notification settings - Fork 292
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
“Source files generally use the standard .pm extension, and scripts or executables use .pl.” #778
Comments
On windows the shebang is ignored and there is no magic file. The only thing that counts when it comes to decide to call perl.exe or perl6.exe is the file ending. If we want to support windows, we have to use .p6. Modules are not a big issue but for sake of consistency we should make a difference too. |
In agreement with gfldex, let's recommend "p6" to avoid confusion with the sister language Perl 5. Edit (after coke's comment below): "pl6" would also work. I like "p6" better because it is the same amount of typing as "pl" yet it is distinctive from it. However, "pl6" is three characters, which would much more likely avoid namespace collisions with other "p" things. But I'll support either one. |
+1 gfldex's comment to recommend .p6, or this one to recommend .pl6 |
As a matter of interest does the windows rakudo installer have the facility to create the association? Or alternatively is there something in the ecosystem that would allow for the creation of the association which could be used by module installers? If not then either the details of how to do this should be documented somewhere, or all of this is somewhat academic. |
Updated the doc text to also reference .pl6 and windows compatibility, and opened a ticket on the star project to track the installer issue. |
The doc still says “Source files generally use the standard |
And the hidden message of whole paragraph is that Perl 6 is the next version of Perl 5, and not a completely new language which is what we were trying to push so much lately. “However, if you wish to highlight that the file is written in Perl 6 you can use the |
@AlexDaniel, if the paragraph is wrong, why can't we change it to just some nice and clean "The extension of X is Y, etc"? Seems like a LHF. |
@Altai-man yea, it's not too hard for sure. |
Given the discussion, removing the LHF tag. I think this is more of a "what is the right answer" than "make this simple subst." |
This question seems to be settled now. See https://irclog.perlgeek.de/perl6/2017-12-03#i_15525555 Basically, even though the docs suggest (“Source files generally use the standard .pm extension, and scripts or executables use .pl”) other extensions, .p6 and .pm6 are winning:
So at this point it is a simple subst. |
+1 vote for recommending ".p6" and ".pm6" in docs, and removing references to ".pl" and ".pm". It probably makes sense, though, for the Windows installer to associate both ".p6" and ".pl6" to Rakudo, yeah? |
Yeah. |
Agree on that too.
|
Agree on recommending ".p6" and ".pm6" too. |
Per #778 (comment) Fixes #1807 (the issue mentions codifying the standard extensions, which is already done in the "Basic Structure" section).
We should be careful when changing names of these tools because there might be some automation that depends on them, but in this case it's probably only my own automation that matters, so I'll take the hit. Consensus for .p6 was reached in Raku/doc#778.
Let's see if anything breaks when we do this. Similarly to rakudo/rakudo@98e575d See #778 for more info.
From modules#Basic_Structure:
This is no longer true. Or so it seems. Here are some stats from the whole ecosystem:
The text was updated successfully, but these errors were encountered: