Raku / examples

Many examples of Raku code

Home Page:https://examples.raku.org/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Change extensions to .p6

JJ opened this issue · comments

It's the preferred extension today.

Do you mean every examples in the folder below should have the extension .p6?

https://github.com/perl6/perl6-examples/tree/master/categories/cookbook

Please expect the next PR with the extension changed to .p6 tomorrow ;-)

It's a personal gripe but why do scripts have "extensions" at all? for all OS but Windows they aren't needed, and for Windows they probably need a .BAT wrapper anyway.

Most examples still have the .pl extension, I'm afraid.

Should the shebangs now be #!/usr/bin/env raku and extensions .raku?

Happy to provide the PR

The purpose of this repo is not very clear, hence there are no volunteers available and it was abandoned for quite some time.
If you want to work on it, firstly a clear image of how exactly this repo will be helpful, is needed.

Thanks @JJ I will do the PR to make this update. I agree there should be tests where possible.
One liners on the other hand might get conflated, as they would need to be factored into sub routines, which might confuse the reader.

I agree also with @Altai-man But I think a new issue is the place to discuss, which I will also set up. To his point, I only found this repo accidental and initially thought it was something else.

Closing this issue as it's outdated; the correct extension going forward is .raku. Opening a new ticket to track