aboutsummaryrefslogtreecommitdiff
path: root/notes
diff options
context:
space:
mode:
authorDrahflow <drahflow@gmx.de>2013-08-06 10:49:42 +0200
committerDrahflow <drahflow@gmx.de>2013-08-06 10:49:42 +0200
commit25e3b82ed8bb21b84f1881efa4be5d3df0a52698 (patch)
tree0c966568b1bc372180c2119d3cae68f6b275e2fb /notes
parent7c6ad5673f860754637f62187e69c84f150de441 (diff)
First steps towards a standard library
Diffstat (limited to 'notes')
-rw-r--r--notes40
1 files changed, 40 insertions, 0 deletions
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 ]