From: "Dr. Arne Babenhauserheide" <arne_bab@web.de> To: John Herrlin <jherrlin@gmail.com> Cc: emacs-orgmode@gnu.org Subject: Re: [PATCH] ob-java, a proposal on import improvement Date: Fri, 08 Jan 2021 23:09:39 +0100 [thread overview] Message-ID: <87im87cc7w.fsf@web.de> (raw) In-Reply-To: <87o8hzv1e8.fsf@gmail.com> [-- Attachment #1: Type: text/plain, Size: 1022 bytes --] John Herrlin <jherrlin@gmail.com> writes: > I would like to combine imports from header-args with imports from a > source block. > > Here is an example: > > * RxJava > :PROPERTIES: > :header-args: :dir src :results output code > :header-args:java: :cmdline -classpath ./rxjava-1.3.8.jar:src:. :cmpflag -classpath ./rxjava-1.3.8.jar:src:. :imports rx.Observable rx.Subscriber > :END: > > #+BEGIN_SRC java > import static rx.Observable.empty; > import static rx.Observable.just; > import static rx.Observable.range; > > Observable > .range(5, 5) > .flatMap(x -> just(x * 2)) > .flatMap(x -> (x != 10) ? just(x) : empty()) > .subscribe(System.out::println); > #+END_SRC > What do you think about it? I can’t give an informed opinion about the patch, but the example looks great! I did not know that Java support in org-babel is that good. Best wishes, Arne -- Unpolitisch sein heißt politisch sein ohne es zu merken [-- Attachment #2: signature.asc --] [-- Type: application/pgp-signature, Size: 1125 bytes --]
next prev parent reply other threads:[~2021-01-08 22:12 UTC|newest] Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top 2021-01-08 16:28 John Herrlin 2021-01-08 22:09 ` Dr. Arne Babenhauserheide [this message] 2021-01-09 15:55 ` ian martins 2021-01-09 15:51 ` ian martins 2021-01-10 20:55 ` John Herrlin 2021-01-12 12:00 ` ian martins 2021-01-16 12:56 ` ian martins 2021-01-16 15:32 ` John Herrlin 2021-01-16 20:49 ` ian martins 2021-04-25 3:42 ` Timothy
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 List information: https://www.orgmode.org/ * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=87im87cc7w.fsf@web.de \ --to=arne_bab@web.de \ --cc=emacs-orgmode@gnu.org \ --cc=jherrlin@gmail.com \ --subject='Re: [PATCH] ob-java, a proposal on import improvement' \ /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
Code repositories for project(s) associated with this inbox: https://git.savannah.gnu.org/cgit/emacs/org-mode.git 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).