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 i
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 process the source code
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 wrote:
>
@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 true
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" } }
> Foo.ne
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:
>
> > sub Δ($x) { say "got $x" }
>
>
Δ is a perfectly valid letter in the Greek al
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:
:
:
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 a
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 to
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 pretty
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:
> sub Δ($x) { say "go
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
>> why. I
>> also didn't need to quote them. Here is
12 matches
Mail list logo