#61 API Consistency

brian Fri 7 Apr 2006

Following our conventions to return null rather than -1 for Ints

  • InStream.read, readBuf, readChar return null rather than -1 if end of stream
  • File.size returns null rather than -1 if not a file
  • List.index returns null rather than -1 (matches what I did in Str.index, indexr)

Following our convention that condition checks are prefixed with is:

  • List.isEmpty renamed from List.empty

Login or Signup to reply.