From: Per Bothner <per@bothner.com>
To: Duncan Mak <duncanmak@gmail.com>
Cc: "kawa@sourceware.org" <kawa@sourceware.org>
Subject: Re: Working with string keys in a java.util.Map
Date: Fri, 3 Jul 2020 22:24:42 -0700 [thread overview]
Message-ID: <fcbfe1d2-f88f-698d-27b0-f1fc2cb73993@bothner.com> (raw)
In-Reply-To: <CABgWrqoNGRKe=raFS4gm=AjmOcmgczCqTO979QH8CdfNdWfT-A@mail.gmail.com>
On 7/3/20 9:04 PM, Duncan Mak via Kawa wrote:
> What do you think of having literal syntax for this -- what about $"this is
> a java string"?
No, I don't think we need or want a special literal syntax for Java strings.
> This is kinda inspired by what Scala did a little while again:
> https://docs.scala-lang.org/overviews/core/string-interpolation.html
You might want to check out:
https://www.gnu.org/software/kawa/String-literals.html#String-templates
--
--Per Bothner
per@bothner.com http://per.bothner.com/
prev parent reply other threads:[~2020-07-04 5:24 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-07-03 21:46 Duncan Mak
2020-07-03 21:52 ` Sudarshan S Chawathe
2020-07-03 22:33 ` Per Bothner
2020-07-04 1:30 ` Jamison Hope
2020-07-04 4:04 ` Duncan Mak
2020-07-04 4:29 ` Sudarshan S Chawathe
2020-07-04 5:24 ` Per Bothner [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=fcbfe1d2-f88f-698d-27b0-f1fc2cb73993@bothner.com \
--to=per@bothner.com \
--cc=duncanmak@gmail.com \
--cc=kawa@sourceware.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).