Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

Re^7: Small Perl 6 discoveries IV, hash access (snippets)

by LanX (Saint)
on Oct 09, 2017 at 14:01 UTC ( [id://1200993]=note: print w/replies, xml ) Need Help??


in reply to Re^6: Small Perl 6 discoveries IV, hash access
in thread [Perl6] Perl 6 discoveries IV, hash access

> I'm still not sure what a "snippet" is,

basically the combination of an interactive code template and an abbreviation plus trigger. Sets are activated according to context. (Like Perl mode)

Here a demo for emacs

http://youtube.com/watch?v=MayeP8Akwas

> I should invent my own unicode mapping

Most editors support the snippet model originating from TextMate, including converters.

IIRC does Perl 6 allow alternative none unicode versions of it's operators.

Like >> for »

Consequently "inventing" a generic and agnostic solution shouldn't be difficult, like typing <<+TAB or oo+BAR (for infinity)

Cheers Rolf
(addicted to the Perl Programming Language and ☆☆☆☆ :)
Je suis Charlie!

Replies are listed 'Best First'.
Re^8: Small Perl 6 discoveries IV, hash access
by soonix (Canon) on Oct 09, 2017 at 14:30 UTC
    For code points that are to be used more than once, that is a feasible solution. However, if you need arbitrary characters, that you don't know in advance, the situation is more difficult.
      Does Perl 6 need arbitrary unicode characters?

      Cheers Rolf
      (addicted to the Perl Programming Language and ☆☆☆☆ :)
      Je suis Charlie!

        It doesn't need any, technically. AFAIK, there are (sometimes ugly) plain-ASCII equivalents for everything. But if you've inherited some Perl6 where someone has gone nuts with Unicode, you're really going to want a Unicode-capable editor.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1200993]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others about the Monastery: (3)
As of 2024-04-16 04:25 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found