diff options
| author | Drahflow <drahflow@gmx.de> | 2013-08-06 10:49:42 +0200 |
|---|---|---|
| committer | Drahflow <drahflow@gmx.de> | 2013-08-06 10:49:42 +0200 |
| commit | 25e3b82ed8bb21b84f1881efa4be5d3df0a52698 (patch) | |
| tree | 0c966568b1bc372180c2119d3cae68f6b275e2fb /notes | |
| parent | 7c6ad5673f860754637f62187e69c84f150de441 (diff) | |
First steps towards a standard library
Diffstat (limited to 'notes')
| -rw-r--r-- | notes | 40 |
1 files changed, 40 insertions, 0 deletions
@@ -280,3 +280,43 @@ Maybe ; should act differently when getting a string, or use another single char Uses: Categorical operators over Set Anyway: This should be handled by a library, use escape mechanism for ; + +== Musings about the API == + +sys .file +sys .net +sys .net .tcpip + + "127.0.0.1" 80 connect + "www.google.de" 80 connect + +sys .poll + create -> p + file userdata p .add + file p .remove + timeout p .poll + +sys .linux + +str + ... "format" sprintf + string "format" sscanf + end string prefix + { 0 end string infix } + start string postfix + { start string len infix } + start end string infix + { start end range string * } + +str .encode + string from to encode + +str .utf8 + +bin + ... "format" bprintf + string "format" bscanf + +math + [ 1 2 3 ] 16 unbase -> 1+2*16+3*16*16 + 12345 10 base -> [ 5 4 3 2 1 ] |
