| Commit message (Collapse) | Author | Age | Lines |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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'
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
(#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
|
|
|
|
|
|
|
|
|
|
| |
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
|
| |
|
| |
|
|\
| |
| | |
[perl 6] changed code output to as stated in comments
|
| |
| |
| |
| |
| | |
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.
|
|/ |
|
| |
|
|\
| |
| | |
Perl6: $! is not available inside the CATCH{} (Possibly)
|
| | |
|
| |
| |
| | |
@Zoffixnet, awaiting your review
|
| | |
|
|/ |
|
|\
| |
| | |
[perl6] fix the output of ff example
|
| | |
|
|\ \
| |/
|/| |
Fixes typos and removed useless spaces
|
| | |
|
|/ |
|
| |
|
| |
|
| |
|
|\
| |
| |
| |
| | |
Conflicts:
perl6.html.markdown
|
| |
| |
| | |
Also mention MoarVM before JVM.
|
| | |
|
|/ |
|
|
|
| |
and a few more fixes/moving arounds
|
|
|
| |
($_.chars > 50) ~~ True : this is always True.
|
| |
|
|
|
| |
Probably just a paste-o mistake. Want to count 3 times not 5.
|
|
|
| |
It seems "when" should be replace by "given" at the end of the comment.
|
|
|
| |
typo, wrong sub name in comment : mod => x-store
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
|
| |
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»
|
|
|
| |
It is actually generating fibonacci series
|
|
|
|
|
| |
We assigned 6 to @array[1] a few lines before, so say @array will print
"a 6 b", not "a 2 b".
|
|
|
| |
caught by @wryk++
|
|
|
|
|
| |
also, multi-indexing in arrays
also, labeled loops (draft)
also, arrays vs $() vs parcel vs ... (@moritz++)
|
| |
|
| |
|
|
|
| |
mrf++
|
| |
|
| |
|
| |
|
|
|
|
|
| |
TODO nested sub signatures
TODO start
TODO flattening
|
|
|
|
|
|
|
|
| |
also MAIN.
some links under "Going further"
TODO start
TODO flattening
TODO regexps
|
|
|
| |
Little note about compound operators
|