[Python-ideas] Syntax idea for 2D lists\arrays

Mikhail V mikhailwas at gmail.com
Wed Mar 14 23:32:28 EDT 2018


On Thu, Mar 15, 2018 at 2:10 AM, Terry Reedy <tjreedy at udel.edu> wrote:
> On 3/14/2018 8:32 PM, Mikhail V wrote:
>>
>> ...
>>
>> Also in 1d case one might omit the line continuation \:
>>
>> L ===*
>>      "msg1"
>>      "msg2"
>>      "error"
>>
>> returns:
>> ["msg1", "msg2", "error"]
>
>
> No, this would return "msg1msg2error"
>

Ah well, if we already in implementation details - sure,
a complete solution would be a whole new layer in parser - lists, tuples,
lists of tuples, dicts.
It'd be what I suppose is called a [new to python] micro-language, with
own preprocessing.


More information about the Python-ideas mailing list