Compatibility as a language function is poorly defined and probably not homogeneous. Different languages ββmay be more or less concise depending on the problem.
Erlang as a functional language can be very concise, outside of Ruby or Python. In particular, pattern matching often replaces if statements, recursion, and lists can replace loops.
For example, Java will have something like this:
String foobar(int number){ if (number == 0) { return "foo"; } else if (number == 1) { return "bar"; } throw new Exception(); }
whereas Erlang code would look like this:
foobar(0) -> "foo"; foobar(1) -> "bar".
Except that it is inalienable because there is no suggestion to enter another, then 0 or 1. This creates a problem that is well suited for developing the Erlang style.
In general, everything that you could define as a transformation would go especially well with a functional language and could be written very briefly. Because of the many fanatics of functional languages, it is argued that any programming problem is a transformation.
Deflog
source share