How do you actually type ⇒ in editor like Intellij Idea?

1,835 views
Skip to first unread message

Henry Saputra

unread,
Sep 19, 2013, 9:46:43 PM9/19/13
to spray...@googlegroups.com
HI Guys, I just pulled the latest code from master and just found out the "=>" has been changed to "⇒" character in the source code with commit for https://github.com/spray/spray/issues/213

So, how do we insert this kind of symbols using editor like IDEA to update the code?

Thanks,

Henry

Martin Grigorov

unread,
Sep 20, 2013, 3:22:07 AM9/20/13
to spray...@googlegroups.com
Hi,

AFAIK they are interchangeable. You can use either or them. Scala will interpret them the same way.


--
You received this message because you are subscribed to the Google Groups "spray-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email to spray-user+...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Martijn Hoekstra

unread,
Sep 20, 2013, 3:55:21 AM9/20/13
to spray...@googlegroups.com
In case of spray, this is done by the plugin https://github.com/sbt/sbt-scalariform which formats the source code pre-compile. The arrows are in the setting rewriteArrowSymbols.

Johannes Rudolph

unread,
Sep 20, 2013, 4:00:56 AM9/20/13
to spray...@googlegroups.com
On Fri, Sep 20, 2013 at 9:55 AM, Martijn Hoekstra
<martijn...@gmail.com> wrote:
> In case of spray, this is done by the plugin
> https://github.com/sbt/sbt-scalariform which formats the source code
> pre-compile. The arrows are in the setting rewriteArrowSymbols.

Yep, exactly. We followed the example from akka and it seems to us
like a good compromise: type the ASCII characters which get then
automatically exchanged into the nicer looking unicode symbols for
better readability.

--
Johannes

-----------------------------------------------
Johannes Rudolph
http://virtual-void.net

Henry Saputra

unread,
Sep 20, 2013, 1:08:13 PM9/20/13
to spray...@googlegroups.com
I think this information merit itself to be added to Scala how to
contribute or code standard page?

- Henry

Johannes Rudolph

unread,
Sep 20, 2013, 1:26:01 PM9/20/13
to spray...@googlegroups.com
On Fri, Sep 20, 2013 at 7:08 PM, Henry Saputra <henry....@gmail.com> wrote:
> I think this information merit itself to be added to Scala how to
> contribute or code standard page?

You mean for spray? Yeah, maybe that would make sense.

Alex Cruise

unread,
Sep 20, 2013, 4:16:38 PM9/20/13
to spray...@googlegroups.com
If you're using Linux, I highly recommend taking advantage of the X11 Compose feature.

I have my Compose key set to Scroll Lock (it's in the KDE settings, dunno about anything else), and this is my ~/.XCompose file:

include "/usr/share/X11/locale/en_US.UTF-8/Compose"

<Multi_key> <less> <equal>      : "⇐" U21D0 # LEFTWARDS DOUBLE ARROW
<Multi_key> <equal> <greater>   : "⇒" U21D2 # RIGHTWARDS DOUBLE ARROW
<Multi_key> <a> <r> <r>         : "☠" U2620 # SKULL AND CROSSBONES
<Multi_key> <s> <n> <o> <w>     : "☃" U2603 # Snowman

:)

-0xe1a


Henry Saputra

unread,
Sep 23, 2013, 1:45:30 PM9/23/13
to spray...@googlegroups.com
Thanks Johannes, I will try to find the right place to add this info
into Spray site/doc.

- Henry
Reply all
Reply to author
Forward
0 new messages