Repository navigation
Ernest 0.2.0
Ernest 0.2.0 is the second release of Ernest: the report and the guide weighed against the five
principles of §0, and §0 against what it had decided. Its changes are sentences, not features:
§0 gained a paragraph on the host and one sentence for each principle, and ten sections one
sentence each, under which a family of exceptions became instances of a rule. Programs written
for 0.1.0 change in the places below; each is in the report of this release.
What changed for a program:
spawn(f)andspawnMonitored(f, wrap)take no placement;LocalandWhereare
gone. A spawn on a peer isPeer.spawn(name, f), refused in this release.via(addr, f)takes the address first.- A
Downnames its process:Down(process, reason, site). - Tests are
Test.Case(name, run)withTest.PassedandTest.Failed(text), of the
standard library's moduleTest(Appendix E.24);TestandTestResultleft the prelude. - The built-in type
Foreignis the library's foreign typeForeign.Term(E.12), with the
runtime's exact equality;Foreign.toBytesreads any binary. - A constructor's named fields are stored, sent and shown in the order they are declared.
Io.debugwrites to standard error;Io.showandIo.debugare resolved at a known type,
a type error on a type variable, and write a foreign value as<foreign>.- A printed type marks a process-only effect variable
m+, besidea=anda!. Terminal'sstyled, cursor moves and erasures are the libraryAnsi(G.3);
Terminal.sizeanswersEither.- A reply may stand in a list, an
Optionalor anEither; §6.6 names no type. - A member is an operator,
compareornegatealone;letdeclares no member. - Parentheses after
|>change nothing;1e10is a float; a tuple has two or more
components; a stray doc block is an error. Tcp.write,Os.readandOs.writetake milliseconds;Os.starttakes none;
Os.environment(name)asks by name;Os.giveandTcp.givepass a resource on; a
listener has an owner.Io.Errornames its causes,NotAFile,Exists,NotUtf8,Invalid;Otherholds the
host's words.Fs.makeFile,Fs.setModeandFs.makeHardLink;Path.<>joins two paths and
Path.jointakes the segments;Path.nameisNonefor the root;
Path.withoutExtension;List.dropLast(xs, n);String.words;Float.pi;
Io.writeError;Map.mergeWith's function takes the key;List.<>is Ernest.- Gone:
Optional.orElse,Either.orElse,Char.isAsciiDigit,Fs.create,
Fs.makePrivate. - The float
+and-are no longer normalized for negative zero, which they cannot make.