apiapi-designlanguage-designlibrary-design

Should String and CharArray be the same thing?


When designing a programming language API what are the advantages and disadvantages of:

Like in: Haskell, Erlang, C

Like in: Java, C#, Lisp, JavaScript, ...


Solution

  • Reasons to have them be the same type:

    Reasons to have them be different: