Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
PerlMonks  

Re^4: Small Perl 6 discoveries IV, hash access

by Anonymous Monk
on Oct 09, 2017 at 03:26 UTC ( #1200961=note: print w/replies, xml ) Need Help??


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

I'm not sure what a "snippet plugin" is, but I assume you're telling me to set up my own ad-hoc unicode entry system. Um... thanks. I'm sure that won't become unmanageable.
  • Comment on Re^4: Small Perl 6 discoveries IV, hash access

Replies are listed 'Best First'.
Re^5: Small Perl 6 discoveries IV, hash access
by holli (Abbot) on Oct 09, 2017 at 11:48 UTC
    No, I am telling you to use the capabilities of whatever editor you use. Atom for example has support for snippets built in. For others there editor plugins. With little or more effort (depending) you can set up snippets that give you unicode operators.

    I use a snippet file for Atom that lets me, for example, type Inf(SHIFT-TAB) and i get the infinity symbol in my editor.


    holli

    You can lead your users to water, but alas, you cannot drown them.
      I'm still not sure what a "snippet" is, but you're definitely telling me that I should invent my own unicode mapping and "with little or more effort" implement it in 672 lines of JSON. If only I weren't so darned lazy.
        > 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!

        I copy and pasted the operators from the docs and massaged the text into cson by using a simple regex search and replace. Took 15 minutes including testing.


        holli

        You can lead your users to water, but alas, you cannot drown them.

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others meditating upon the Monastery: (6)
As of 2021-05-13 23:21 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Perl 7 will be out ...





    Results (145 votes). Check out past polls.

    Notices?