From 25e3b82ed8bb21b84f1881efa4be5d3df0a52698 Mon Sep 17 00:00:00 2001 From: Drahflow Date: Tue, 6 Aug 2013 10:49:42 +0200 Subject: First steps towards a standard library --- notes | 40 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) (limited to 'notes') diff --git a/notes b/notes index a3169d8..b59aa41 100644 --- a/notes +++ b/notes @@ -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 ] -- cgit v1.2.3