poke-devel
[Top][All Lists]
Advanced

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

Re: Proposal to change the ranges in array trimming to be "half-open" in


From: Dan Čermák
Subject: Re: Proposal to change the ranges in array trimming to be "half-open" interval
Date: Tue, 03 Nov 2020 00:31:57 +0100

Hi Jose,

"Jose E. Marchesi" <jemarch@gnu.org> writes:
>
>> Besides that I honestly don't really care, but I think for the sake
>> consistency and onboarding experience, I'd go with the "standard" way.
>
> I agree on adoptin the "standard" way.  Poke is weird enough as it
> is...
>
> That said, Egeyar's suggestion is definitely intriguing.  It is was to
> be supported at some point, however, I would use a very different
> syntax.

I think a viable option would be to tackle these kinds of slices via
functions, e.g. instead of creating them via `b[2:3]` you'd write
`make_range(b, 2, 3)`. That would allow you to use Egeyar's way without
having to add another syntax for that.


Cheers,

Dan

Attachment: signature.asc
Description: PGP signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]