Skip to content

v0.1.0-RC

Pre-release
Pre-release
Compare
Choose a tag to compare
@melvic-ybanez melvic-ybanez released this 29 Mar 19:22
· 37 commits to 0.1.x since this release

The main focus of this release was the support for Java syntax:

chi> <A, B> B apply(A a, Function<A, B> f)
Detected language: Java
Generated code:
<A, B> B apply(A a, Function<A, B> f) {
    return f.apply(a);
}

chi> <A, B, C> Function<A, C> compose(Function<B, C> f, Function<A, B> g)
Detected language: Java
Generated code:
<A, B, C> Function<A, C> compose(Function<B, C> f, Function<A, B> g) {
  return a -> f.apply(g.apply(a));
}

chi> <A, B, C> BiFunction<A, B, C> foo(Function<A, C> f)
Detected language: Java
Generated code:
<A, B, C> BiFunction<A, B, C> foo(Function<A, C> f) {
  return (a, b) -> {
    f.apply(a)
  };
}

What's Changed

Full Changelog: v0.1.0-beta...v0.1.0-rc

Edit: The last Java example isn't working in this release (I realized this too late). However, in the latest code the issue has been fixed.