Implemented Java 8 Lambda-style interface instantiation (version-agnostic,
can run on Java 6).
javaDefStatic can now check if the class it's defining is a functional
interface.

Java 8:
Runnable println = () -> System.out.println("Lambda");

Ersatz:
(let Println (Runnable.new () (println "quote") ) )
--or--
(let Println (Runnable.new (println "quote") ) )

Java 8:
Consumer<String> println = s -> System.out.println(s);

Ersatz:
(let Println (Consumer.new (S) (println S) ) )

Sources:
https://dl.dropbox.com/u/21827264/lisp.tar.gz
https://docs.google.com/file/d/0B5bgSneQe6lYMHF4cXY5YkZqNTg/edit?usp=sharing


Samuel Dennis R. Borlongan


On Sat, Mar 9, 2013 at 6:09 PM, Jakob Eriksson <ja...@aurorasystems.eu>wrote:

> This is so awesome, getting access to all Java libraries etc from PicoLisp
> :)
>

Attachment: lisp.tar.gz
Description: GNU Zip compressed data

Reply via email to