Rakudo: Perl 6 keywords.

Created on 24 Sep 2018  ยท  3Comments  ยท  Source: rakudo/rakudo

Could you change these keywords with more briefly? These keywords are very tiresome.

atomic-fetch();
atomic-assign();
atomic-fetch-inc();
atomic-fetch-dec();
atomic-inc-fetch();
atomic-dec-fetch();
atomic-fetch-add();

Most helpful comment

All 3 comments

It's uncomfortable to programming using Unicode.

Thanks for the suggestion, but this has been discussed thoroughly in the past and the current names are fairly settled. These aren't a type of routines most users would use commonly, so we're aiming at them being more descriptive than terse.

You have the option of using Unicode ops. Most operating systems and some hardware let you bind shortcuts to various typing constructs, so you could look into binding some easy key for the ops, if you use them frequently.

Also, you could define your own operators or routines and stick 'em in a module, potentially releasing it to the Ecosystem as well:

constant &postfix:<@++> = &atomic-fetch-inc;

my atomicint $x;
$x@++;
dd $x # OUTPUT: ยซ1โคยป
Was this page helpful?
0 / 5 - 0 ratings

Related issues

raiph picture raiph  ยท  3Comments

Altai-man picture Altai-man  ยท  3Comments

Altai-man picture Altai-man  ยท  3Comments

MorayJ picture MorayJ  ยท  4Comments

AlexDaniel picture AlexDaniel  ยท  3Comments