yet more improvements to readme

This commit is contained in:
Sander Hautvast 2021-03-04 21:54:33 +01:00
parent b540e13d07
commit d4be4c3989

View file

@ -18,15 +18,15 @@ The repl has the following syntax (It's work in progress, new capabilities will
> > vector@0{x0:0, y0: 1, x:1, y:1} > > vector@0{x0:0, y0: 1, x:1, y:1}
* method calls: * method calls:
```a = vector(12, 1)``` ```a = vector(12, 1)```
> > vector@0{x0:1, y0: 2, x:12, y:1} > > vector@0{x0:0, y0: 2, x:12, y:1}
* ```vector(1 2)``` works as well. The start is now the origin. * ```vector(1 2)``` works as well. The start is now the origin.
commas are not mandatory. I'm planning to add a more mathematical notation for vectors: ```[1 2]``` commas are not mandatory. I'm planning to add a more mathematical notation for vectors: ```[1 2]```
* properties * properties
* ```a = vector(12, 1)```
* ```a.type``` * ```a.type```
> > vector > > vector
* property lookup * ```a.x+1```
```a.x+1```
> > 13 > > 13
* drag vectors using the mouse pointer. You can change the vector arrows visually * drag vectors using the mouse pointer. You can change the vector arrows visually
* lazy evaluation. The difference between ```c = a+b``` and ```c = "a+b"``` * lazy evaluation. The difference between ```c = a+b``` and ```c = "a+b"```