summaryrefslogtreecommitdiffhomepage
path: root/perl6.html.markdown
Commit message (Collapse)AuthorAgeLines
* [perl6] add myself as contributor (#2530)samcv2016-10-28-0/+1
|
* [perl6] Explain `orelse` operator, add more information about exceptions, ↵samcv2016-10-27-49/+120
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | add an Iterables section... (#2505) * More clear names for the module and variables demonstrating declarators (our) for sub's and a few more details in comments * $! is only set when we use "try" not when we disarm an exception with or/orelse thanks to ZoffixZnet for the information here provided here: https://rt.perl.org/Ticket/Display.html?id=129923 * Fix the example from the last commit. Some changes in the try/catch paragraph * Change it so the vim modeline doesn't show up in the final html file(not even as a comment) * Minor grammar fix * Add more information about the .exception method and explain how orelse differs from the or operator * Add link to the Perl6 docs and explain that while the Perl 6 advent calander is a great reference it may be a little older (Posts stopped in Dec of 2015). Also make the columns fit better to 80 characters * Fix in issue with a few of the regex examples, where Perl 6 would warn because the spacing was ambiguous. Explain how you must use two spaces between strings so spacing isn't ambiguous or use the :s adverb to make whitespace meaningful explicitly. Also explain 'm' and using delimiters other than / / * Improve the readability of the phasers introduction * Fix the remaining regex that will warn because of ambiguous spacing * Add an example for ‘quietly’ since it has been implemented now * Update link for precedence order to point to current documentation * Add a section on iterables and show examples for using the lazy method * Some corrections * Change downloaded filename to .p6 instead of .pl * Show vertical line for 80 column width in vim modeline * Update the exceptions section to vendethiel's suggestions
* Perl 6: Make information about Hash tables correct. Rewrite the example for ↵samcv2016-10-20-111/+172
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | dynamically scoped variables.. (#2475) * Explain that you cannot pass immutable values like integers to subs even if you use $n is rw. * Add myself as a contributor * Remove contributor since I am not a major contributor * Add many more smartmatch examples. Make the ternary operatory clearer and add a code example for it. Make the section for && and || have a working code example and show the output it gives * Fix assigning $a $b and $c values in the && operator section * Rename a few things so they don't conflict with variables in other parts of the code * Remove extra dashes * Move description of smartmatch type checks toward the end of that section * Better names for scoping examples * Redo the example for dynamically scoped variables so the example is better and functions properly when ran (old example did not work properly when running it by itself) * Rename these classes so they aren't named the same as the ones above * Add information about the different twigils in Perl 6. This makes understanding what $. $! and $* are and how they relate. Also complete the renaming in the previous commit * Fix capitalization and indenting here * Using the word interpolate to mean accessing an element of an array is not the proper terminology. Using the word interpolate is usually associated with things such as this: say "@names = { @names.perl }" * Make the wording a little clearer for arrays * Remove incorrect information about hashes. Hashes are not arrays of pairs although Perl 6 makes it easy to use them as such * Make the subroutine text read better * Clean up the Object Model introduction section * Fix the section on interpolating all elements of an array * Use the word attribute instead of field since this is the wording that the perl 6 documentation uses for these objects * Fix column width in a few places * More clearly mark which twigils are used for "normal" variables and which ones are used on "objects". This makes the flow from the # Scoping => # Twigil => # Object Model section smoother * Semi-rewrite the example for object inheritance and use more natural names. Also rename class A to class Attrib-Class * Clean up the scoping introduction a little * Remove a leftover line from rewriting the inheritance example * More gradually introduce exceptions and fix a typo, as well as adding a few examples * Reorder introduction of packages to be more natural. Show how to "use" a package before we show how to create and declare our own modules * Avoid using the word 'use' because we're not refering to the perl keyword 'use'
* Perl6: Add many more smartmatch examples. Make the ternary operator clearer ↵samcv2016-10-18-22/+53
| | | | | | | | | | | | | | | | | | | | (#2472) * Explain that you cannot pass immutable values like integers to subs even if you use $n is rw. * Add myself as a contributor * Remove contributor since I am not a major contributor * Add many more smartmatch examples. Make the ternary operatory clearer and add a code example for it. Make the section for && and || have a working code example and show the output it gives * Fix assigning $a $b and $c values in the && operator section * Rename a few things so they don't conflict with variables in other parts of the code * Remove extra dashes * Move description of smartmatch type checks toward the end of that section
* Perl6: Explain that Integers Can't be Passed and Modified in Sub's Even If ↵samcv2016-10-18-0/+9
| | | | | | | | | | Using `is rw´ (#2471) * Explain that you cannot pass immutable values like integers to subs even if you use $n is rw. * Add myself as a contributor * Remove contributor since I am not a major contributor
* Fixed instance where wrong variable name was usedDustin Williams2016-03-20-1/+1
|
* Fix typo referenced in Issue #2075Jacob Ward2016-01-07-1/+1
|
* Merge pull request #2076 from tlvb/p6-packages-foobarAdam Bard2016-01-06-2/+1
|\ | | | | [perl 6] changed code output to as stated in comments
| * changed code output to as stated in commentsLeo Bärring2015-12-26-2/+1
| | | | | | | | | | The comments state that Foo::Bar::inc in the package variable example should increase $Foo::Bar::n and then print it. This did not happen, as `say ++$n;` was placed outside the block of the sub Foo::Bar::inc. The commit puts `say ++$n;` inside the block of Foo::Bar::inc.
* | Fix #2040Owen Rodda2015-12-27-1/+1
|/
* Fix typo in Perl 6 example (closes #2025)Ryan Gonzalez2015-11-19-1/+1
|
* Merge pull request #2028 from zoffixznet/catch-varven2015-11-17-1/+1
|\ | | | | Perl6: $! is not available inside the CATCH{} (Possibly)
| * $! is not available inside the CATCH{}Zoffix Znet2015-11-17-1/+1
| |
* | Address #1390ven2015-11-08-12/+17
| | | | | | @Zoffixnet, awaiting your review
* | Removed references to compilers other than the Rakudo.Paulo Henrique Rodrigues Pinheiro2015-10-15-3/+1
| |
* | Many fixes mentioned in #1390Zoffix Znet2015-10-10-45/+46
|/
* Merge pull request #1404 from tecknicaltom/masterLevi Bostian2015-10-09-1/+1
|\ | | | | [perl6] fix the output of ff example
| * fix the output of ff exampleTom Samstag2015-10-08-1/+1
| |
* | Merge pull request #1393 from aayushranaut/masterven2015-10-08-4/+3
|\ \ | |/ |/| Fixes typos and removed useless spaces
| * Fixes typosAayush Ranaut2015-10-07-23/+22
| |
* | removing whitespace all overGabriel Halley2015-10-07-21/+21
|/
* Update perl6.html.markdownJack Kuan2015-09-23-1/+1
|
* In perl6, 0 is not falsey anymoreAleks-Daniel Jakimenko2015-08-25-1/+1
|
* fix typo, resolves #1156ven2015-06-27-1/+1
|
* Merge remote-tracking branch 'upstream/master'Jonathan Scott Duff2015-06-25-1/+1
|\ | | | | | | | | Conflicts: perl6.html.markdown
| * Parrot is no longer supported.David Warring2015-05-13-2/+1
| | | | | | Also mention MoarVM before JVM.
| * Fix #1094ven2015-05-09-1/+1
| |
* | Add a link about parrot suspensionJonathan Scott Duff2015-04-24-4/+6
|/
* fix #1032ven2015-04-15-42/+18
| | | and a few more fixes/moving arounds
* Update perl6.html.markdownPhilippe Bricout2015-04-01-1/+3
| | | ($_.chars > 50) ~~ True : this is always True.
* Minor typo: fixed curly bracket direction (} -> {)Jeff Erickson2015-03-25-1/+1
|
* thrice .... gather ^3 counts three times "0 1 2" not 5ronaldxs2015-03-20-1/+1
| | | Probably just a paste-o mistake. Want to count 3 times not 5.
* Perl6, minor change in comments Philippe Bricout2015-03-01-1/+1
| | | It seems "when" should be replace by "given" at the end of the comment.
* Update perl6.html.markdownPhilippe Bricout2015-02-27-1/+1
| | | typo, wrong sub name in comment : mod => x-store
* fix #937ven2015-01-25-3/+2
|
* Fix link to synopses and call them 'design docs'raiph2015-01-09-1/+1
|
* @wryk++ven2014-12-29-1/+1
|
* rework of the tutorialven2014-12-24-176/+180
|
* 0 // 5 = 0ugexe2014-11-16-1/+1
| | | | | | | | 11:59 < nebuchadnezzar> m: say Any // Nil // 0 // 5 11:59 <+camelia> rakudo-moar 38e77b: OUTPUT«0␤» 11:59 < nebuchadnezzar> shouldn't it be 5? 12:00 < ugexe> 0 is a defined value 12:00 < ugexe> m: say Any || Nil || 0 || 5; 12:00 <+camelia> rakudo-moar 38e77b: OUTPUT«5␤»
* Update perl6.html.markdownKishore Relangi2014-11-10-1/+1
| | | It is actually generating fibonacci series
* Fix a comment that indicates what "say @array" will print.Peter Palfrader2014-10-12-1/+1
| | | | | We assigned 6 to @array[1] a few lines before, so say @array will print "a 6 b", not "a 2 b".
* Fix a brainoNami-Doc2014-10-07-1/+1
| | | caught by @wryk++
* Capturing captures, and numbering themNami-Doc2014-09-27-10/+76
| | | | | also, multi-indexing in arrays also, labeled loops (draft) also, arrays vs $() vs parcel vs ... (@moritz++)
* Exception thingies!Nami-Doc2014-09-23-4/+29
|
* Regexes thingies.Nami-Doc2014-09-13-3/+49
|
* Clarifications about *+* and ... with a subNami-Doc2014-08-27-1/+8
| | | mrf++
* Make the text fit.Nami-Doc2014-08-21-39/+45
|
* Update perl6 to fix some of its quirksNami-Doc2014-08-14-216/+318
|
* Minor fixes to return values.Patrick Sebastian Zimmermann2014-08-05-5/+5
|
* REGULAAAAAAR EXPREEEESSSIIIIOOOOOONS. GO!Nami-Doc2014-07-31-0/+128
| | | | | TODO nested sub signatures TODO start TODO flattening