Raku / examples

Many examples of Raku code
https://examples.raku.org/
Artistic License 2.0
294 stars 89 forks source link

Change extensions to .p6 #57

Closed JJ closed 2 years ago

JJ commented 5 years ago

It's the preferred extension today.

manwar commented 5 years ago

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

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

JJ commented 5 years ago

Right.

manwar commented 5 years ago

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

jonathanstowe commented 5 years ago

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.

JJ commented 4 years ago

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

camstuart commented 3 years ago

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

Happy to provide the PR

JJ commented 3 years ago

Yep, that would be nice.

Altai-man commented 3 years ago

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.

JJ commented 3 years ago

I guess it should include testing every script...

camstuart commented 3 years ago

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.

JJ commented 3 years ago

Test::Output might help with that. Or outputs can be kept in a table.

coke commented 2 years ago

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