The following is intended to be a place for people to pose guidelines on migrating the clojure code to java.

 

In general we should use the official oracle java style http://www.oracle.com/technetwork/java/javase/documentation/codeconvtoc-136057.html

function names with '-' characters in them should be translated to cammelCase.  for example some-function should become someFunction.

function names with a '?' in them should be translated into an appropriate question. for example even? should become isEven.

function names with a '!' in them indicate a side effect.  By convention we will shorten this to WSE unless the name is obviously modifying something, for example save-state! would become saveStarte, but do-something! would become doSomethingWSE.

function names with '->' in them indicate a mapping or transition.  These should usually be translated as the word to.  for example something->something-else would be translated to somethingToSomethingElse.

  • No labels