[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [RFC] Getting rid of `def'
From: |
Mohammad-Reza Nabipoor |
Subject: |
Re: [RFC] Getting rid of `def' |
Date: |
Sat, 7 Nov 2020 22:26:41 +0330 |
Hi, Jose.
On Sat, Nov 07, 2020 at 06:50:16PM +0100, Jose E. Marchesi wrote:
>
> >> I can see a couple of advantages:
> >>
> >> a1) It would shorten the size of programs, and also make them easier to
> >> read.
> >>
> >> a2) Since Poke is used interactively, having shorter names is a plus.
> >
> > Forgot to mention another advantage:
> >
> > a3) Using the var, fun, type, ... form matches better with `method'.
>
> I pushed a branch jemarch/nodef to savannah with the proposed change, to
> get a taste on how the new keywords look and feel. See pickles/*.
>
> I can say that IMO the code looks better now, and it is certainly more
> compact. ...
It's a nice change :+1:
I like it.
> ... The only annoyance I found is that in one of the pickles
> (btf.pk) there were several structs having fields named `type'.
> However, more natural terms came to mind for these fields, in this
> case.
>
In general, I think `typ` is a good alternative for `type` as an identifier.
Regards,
Mohammad-Reza