Skip to content
hzhou edited this page Mar 9, 2012 · 20 revisions

MyDef is a macro framework to enable us to write code in block indented style.

Philosophy

Think about the term "wheel" in the phrase "Do not reinvent the wheel". One could interpret the wheel as an object such as one with steel spooks and rubber rims. Or one could interpret the wheel as an idea that refers to a round object with an axis that rolls.

Re-using a code by refer/include a library is like copying a physical wheel (think about the duplicator in Star Trek).

Or we could just learn the idea of certain code and then recode it again in a slightly different way or even in a complete different language.

With MyDef, we would like to encourage communicate and reuse code at idea level, rather than at the code level.

Examples

The best way to describe how it works is use examples. Following are some demonstrations. We will keep adding them.

Clone this wiki locally