[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Another change.
- Subject: Re: Another change.
- From: Michael Forney <mforney@xxxxxxxxxxx>
- Date: Thu, 27 Jul 2017 20:23:03 -0700
- To: Ori Bernstein <ori@xxxxxxxxxxxxxx>
- Cc: myrddin-dev@xxxxxxxxxxxxxx
On 7/27/17, Ori Bernstein <ori@xxxxxxxxxxxxxx> wrote:
> 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.
I think I don't like this, mainly because of the looking up documentation thing.
What are you thoughts on instead adding the ability to rename an
import like in go?