Assets 6

YokohamaUnit 0.3.0 introduces two new features:

Resource Expression

You can write:

Let uri = resource "text1.txt" as `URI`

instead of:

Let uri = `getClass().getResource("text1.txt").toURI()`.

The type of a resource expression without as keyword is

as keyword can take, or

Temporary File expressions

You can write:

Let tempFile = a temporary file.


Let tempFile = a temp file.

instead of:

Let tempFile = `File.createTempFile("prefix", ".tmp")`.

Do `tempFile.deleteOnExit()`.

Other Changes

  • Refactoring and bug fix on GenSym class
  • Adopt Javaslang