« first day (515 days earlier)      last day (442 days later) » 

12:50 AM
@ASCII-only can you help me design the I/O STDLIB
I am not sure how we want to do it
 
hmm ok
brb in 10 mins
 
Not sure how to unify things like Files + Streams
also inheritance is not super-powerful right now. It's relatively limited (dynamic dispatch is not yet supported) but we can still have the designs in place
 
file should be subclass of stream
 
1:09 AM
@ASCII-only so how would that work
because in C a File is a stream
 
hmm
well it's basically a stream but you can create one with path
 
 
21 hours later…
10:36 PM
@ASCII-only shold packaeg names be lowercase or uppercase e.g.: import Goat or import goat
 
hmm
I'd do the same as public variables
 
?
 
like if public variables are lowerCamelCase make package names like that too
see Java vs C# conventions
 
public variables are lowercamel case yea
 
yeah then I'd say make packages lowercase
 
11:16 PM
ok
@ASCII-only should it be import IO
so that will import things like File()
I was thinking for like file API to be like:
```
let file = File(path: "/path/to/goat.png")
```
 
i'd say import file maybe
because stdin/stdout is IO too
 
I guess you could do like import module IO.File
@ASCII-only yeah, I'm still not sure on how to do streams
I suppose we could use event-based Event.when stdin.didWrite { ... }
@ASCII-only should STDIN be a static property, a global?
i feel like it should be static
but not sure of what
 
File :P
 
so like File.stdin.write("hello, world!", encode: .ascii)
 
yeah
 
11:29 PM
what should be way to get input
File.stdin.read(.line)
that is too long
 
i'd prefer for it to be a global but that is probably ugly
 

« first day (515 days earlier)      last day (442 days later) »