Re: can a method name contain a funny character?

2016-04-12 Thread Brandon Allbery
On Tue, Apr 12, 2016 at 6:07 PM, Darren Duncan wrote: > On 2016-04-12 6:59 AM, Brandon Allbery wrote: > >> On Tue, Apr 12, 2016 at 9:51 AM, Brock Wilcox >> wrote: >> Heart doesn't work for me, but other symbols seem fine. I don't know >>

Re: can a method name contain a funny character?

2016-04-12 Thread Darren Duncan
On 2016-04-12 6:59 AM, Brandon Allbery wrote: On Tue, Apr 12, 2016 at 9:51 AM, Brock Wilcox wrote: Heart doesn't work for me, but other symbols seem fine. I don't know why. I also didn't need to quote them. Here is a REPL session from a Rakudo 2016.01.1:

[perl #127883] [BUG] Missing line/column number information when using a missing module

2016-04-12 Thread via RT
# New Ticket Created by Ahmad Zawawi # Please include the string: [perl #127883] # in the subject line of all future correspondence about this issue. # https://rt.perl.org/Ticket/Display.html?id=127883 > use NotFoundModule; or use NotInstalledModule; produces no line/column number error

[perl #127881] [BUG] slow array slicing

2016-04-12 Thread via RT
# New Ticket Created by Daniel Green # Please include the string: [perl #127881] # in the subject line of all future correspondence about this issue. # https://rt.perl.org/Ticket/Display.html?id=127881 > '@array[0, 3, 7]' is much slower than '(@array[0], @array[3], @array[7])' time perl6

Re: [perl #127878] UTF8-C8 + Str.subst either dumps core or corrupt memory

2016-04-12 Thread Moritz Lenz
On 11.04.2016 17:00, Moritz Lenz wrote: > On 04/11/2016 03:04 PM, Nicholas Clark wrote: >> On Mon, Apr 11, 2016 at 04:39:59AM -0700, H. Merijn Brand wrote: >> >>> In a one-liner: >>> >>> $ p6 -e'my$b=Buf.new(61,^2048 .map({256.rand.Int}));my Str >>>

[perl #127879] [BUG] map subroutine ignores the sequence in the specific case

2016-04-12 Thread via RT
# New Ticket Created by Itsuki Toyota # Please include the string: [perl #127879] # in the subject line of all future correspondence about this issue. # https://rt.perl.org/Ticket/Display.html?id=127879 > See the following results. $ echo "h o g e" | perl6 -e 'for $*IN.lines -> $line {

Re: Union

2016-04-12 Thread David Warring
Hi Marcel, Not that I know of. With regard to your original question. NativeCall has nativecast (as above) for casting and a CUnion representation for unions. There are some tests in https://github.com/rakudo/rakudo/blob/nom/t/04-nativecall/13-union.t for this. NativeCall is letting you get

Re: can a method name contain a funny character?

2016-04-12 Thread Parrot Raiser
If we don't want to get the "line noise" libel all over again, there are some features of the language that should probably go unmentioned for a while. The ability to use non-ASCII characters in names may be perfectly justifiable. When the cognoscenti have produced enough decent code showing how

Re: can a method name contain a funny character?

2016-04-12 Thread Theo van den Heuvel
Thanks again, I get it now. Theo Larry Wall schreef op 2016-04-12 17:00: On Mon, Apr 11, 2016 at 11:32:29PM +0200, Theo van den Heuvel wrote: : Thanks Larry for the answer and the great language. : : It is quite ok for me to start alphabetically. I use the funny char : to indicate a particular

Re: can a method name contain a funny character?

2016-04-12 Thread Larry Wall
On Mon, Apr 11, 2016 at 11:32:29PM +0200, Theo van den Heuvel wrote: : Thanks Larry for the answer and the great language. : : It is quite ok for me to start alphabetically. I use the funny char : to indicate a particular aspect shared by a bunch of subs operators : and methods. : So I tried: :

Re: can a method name contain a funny character?

2016-04-12 Thread Brock Wilcox
Heart doesn't work for me, but other symbols seem fine. I don't know why. I also didn't need to quote them. Here is a REPL session from a Rakudo 2016.01.1: > sub Δ($x) { say "got $x" } sub Δ ($x) { #`(Sub|106407520) ... } > Δ(23) got 23 > class Foo { method Δ($x) { say "method got $x" } } >

Re: can a method name contain a funny character?

2016-04-12 Thread Theo van den Heuvel
@Parrot Raiser and @Luca. I will make sure to add Texan alternatives in case other people need to take over. I use triangle symbols to make internal symmetries in the code visible, and I have no problem pronouning or typing them. The code is substantially more readable with them. The same is

Re: can a method name contain a funny character?

2016-04-12 Thread Parrot Raiser
Mathematical symbols might be a legitimate case, since they are generally pronounceable. Otherwise, special characters cause problems both in entry from the keyboard and thinking about the code. (What does it sound like if you describe it to yourself? foo.heart?) On 4/12/16, Luca Ferrari

Re: can a method name contain a funny character?

2016-04-12 Thread Luca Ferrari
On Tue, Apr 12, 2016 at 9:44 AM, Theo van den Heuvel wrote: > > Why? Perhaps you are confusing taste and good sense. The heart is just an > example. My intention is for a mathematical symbol and a mathematical > meaning. I see nothing wrong with that. unless you have to

Re: can a method name contain a funny character?

2016-04-12 Thread Theo van den Heuvel
Why? Perhaps you are confusing taste and good sense. The heart is just an example. My intention is for a mathematical symbol and a mathematical meaning. I see nothing wrong with that. Parrot Raiser schreef op 2016-04-12 01:06: I hope I never run across code written by someone who thinks this

Re: Union

2016-04-12 Thread JuhiMarcel LangbroekTimmerman
Hi David, Thanks very much for your code, I will try it when I get home at the end of the week although I only have little endian Intell chips. I will have to look around for others. Btw, are there still chips storing big endian paired in two bytes? So your example number would become 0x23,