dafny-lang / libraries

Libraries useful for Dafny programs
Other
43 stars 25 forks source link

Request: basic File I/O needs to work for --unicode-char:true #90

Open davidcok opened 1 year ago

alex-chew commented 1 year ago

@robin-aws I think it's possible for the file I/O externs to support both --unicode-char options at the same time. The exposed methods use string only for the file path parameter and the error message types (the read/written bytes are seq<bv8> and not string). Does the following approach make sense to you?

(Python and Golang aren't supported yet, but I want to check that this approach is feasible so we don't have to change our minds when we do add support.)

davidcok commented 1 year ago

OK - though the proof is in the doing.