Eigenstate: myrddin-dev mailing list

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Another change.


Yesterday, another language change landed. Now, if a namespaced
name is unambiguous (ie, only appears in one namespace), it can
be referred to directly. For example:

	use std

	const main = {args : byte[:][:]
		match open(args[1]) /* std.open */
		| `Ok fd:	put("opened fd\n")
		| `Err e:	put("error opening fd: {}\n", e)
		;;
	}

I'm not sure how much I like this change, since it's now less clear where a
function comes from, and makes looking up documentation harder. But it also
reduces visual noise in code, and makes longer library names more tolerable.

-- 
Ori Bernstein <ori@xxxxxxxxxxxxxx>

Follow-Ups:
Re: Another change.Michael Forney <mforney@xxxxxxxxxxx>