|
|
|
|
|
by voxfrege
3956 days ago
|
|
> but there isn't currently a way to directly implement interfaces or inherit abstract classes in just frege. Not quite true anymore. TO be sure, some (inline) java will still be needed. Here is an example https://github.com/Frege/frege/blob/master/tests/comp/Issue2... which compiles to a class that implements java.util.Comparator. Instances thereof can be created from Frege by passing a custom comparision function and could be passed to Java. The example would be useful in cases when you have Frege data in a Java collection and want to sort them. But it is merely there to show the possibilities. |
|