2 ms·
I am designing a language I call ShowMe. The main idea behind ShowMe is "viewability", by which I mean that every object in a running ShowMe program can be nav
by cabalamat 16y ago
I am designing a language I call ShowMe.
The main idea behind ShowMe is "viewability", by which I mean that every object in a running ShowMe program can be navigated and displayed (and potentially altered) in a Viewer. By object I mean every entity within the system; ShowMe will be a pure object-oriented language.
There will be multiple Views, so the user can view the same data in multiple ways (for for example a table of numbers could be displayed as ascii text, or as an HTML table or as a graph). One of the views will be a low-level ascii string, from which the object can be re-created; this format can therefore be used for serialisation. User-defined classes will be able to define their own views, or re-implement existing views for the new class.
Like Clojure, a lot of data structures in ShowMe will be immutable.
ShowMe will not be a pure functional language, but it will be possible to program in it in a functional style.
There will be 2 syntaxes for writing ShowMe programs: one based on Lisp, the other similar to C. The C-like syntax will be compiled into the Lisp-like syntax.