dg
dg copied to clipboard
A programming language for the CPython VM.
``` Node = subclass object where __init__ = parent:None ~> @parent = parent @childs = [] @i = 9 None addChild = ~> node = Node @ @i -= 1...
> If there was no operator, however, each line is an argument to the last function call. > > ``` > print "Doge says:" sep: "\n" > "not want talk"...
Looking at this example ``` factorial = n -> if n < 0 => None n < 2 => 1 otherwise => n * factorial (n - 1) ``` we...
tuple unpacking in python is very useful. One can unpack a list into `head, *tail = somelist` and it looks a bit like haskell's `case x' of x:xs`. If exceptions...
So we were discussing whether to change the current `__getitem__` syntax or to just alias `_` to `None`. One idea is to allow the argument to `!!` to be a...
It would be cool to be able to take a python codebase and convert it to DG. Then you could configure your IDE to edit any(ish) python code using DG...