First Draft: Member of Operator
Richard (Rikki) Andrew Cattermole
richard at cattermole.co.nz
Fri Sep 13 08:29:45 UTC 2024
On 13/09/2024 7:14 AM, Salih Dincer wrote:
> On Thursday, 12 September 2024 at 18:39:54 UTC, Salih Dincer wrote:
>>
>> ```d
>> enum Days : byte
>> {
>> Sunday = 1 , Monday, Tuesday, Wednesday, Thursday, Friday, Saturday
>> }
>> ```
>
> So will this save us from with() in this example? Because, attention,
> there will be colon next to each other:
>
> ```d
> void main()
> {
> with (Days)
> {
> auto days =
> [
> "Pazar": Sunday,
> "Pazartesi": Monday,
> "Salı": Tuesday,
> "Çarşamba": Wednesday,
> "Perşembe": Thursday,
> "Cuma": Friday,
> "Cumartesi": Saturday
> ];
> //assert(days["Cuma"] == :Friday);;
> }
> }
> ```
>
> SDB at 79
No unfortunately.
```
KeyValuePair:
KeyExpression : ValueExpression
```
ValueExpression is not first term, and there is no context.
The first term restriction exists to keep the analysis as an easy test.
I do not believe Walter would accept anything else due to past comments.
It could be lifted in the future.
More information about the dip.development
mailing list