It comes across to me that the vast majority of those who commented on this
proposal feel that NAME CHECK order is strongly preferred over CHECK NAME order,
for a number of both pragmatic and aesthetic reasons, plus similarity with a
subset of other languages, plus its what the Oshun proof of concept currently does.
While it comes across to me that the only arguments for CHECK NAME order is that
it is similar to a different subset of other languages and that the Perl parser
already implements it to a degree as an unrealized feature.
Given this, I feel that using NAME CHECK order for Oshun seems to be the clear
winner to go with; while not unanimous it has a very clear strong lead.
-- Darren Duncan
On 2024-01-05 11:35 p.m., James Watson wrote:
> On 5 Jan 2024, at 03:55, Paul "LeoNerd" Evans <
leo...@leonerd.org.uk> wrote:
>> Actually the more I think on this, the more I think that actually
>> putting a constraint name /after/ the thing that is being constrained
>> makes more sense. It's extra useful information that doesn't get in the
>> way upfront understanding of the thing. So maybe constraint checks come
>> afterwards:
>>
>> sub fibonacci($nth PositiveInt) UINT
>> {
>> ...
>> }
>>
>> It means as a human reader you can kindof ignore all those bits and
>> skim over them, and they don't get too much in the way.
>>
>> sub fibonacci($nth ##--------) ##--
>> { ... }
>
> +1 from me. Even in languages that arrange these elements differently, this is how my monkey brain parses the information.