[Haskell-cafe] Prolog-style list syntax?
Jaro Reinders
jaro.reinders at gmail.com
Mon Jun 28 18:22:00 UTC 2021
I have definitely wanted this for strings:
"prefix" ++ xs = string
Is much better than:
'p' : 'r' : 'e' : 'f' : 'i' : 'x' : xs = string
Jaro
On 28-06-2021 20:15, Viktor Dukhovni wrote:
> On Mon, Jun 28, 2021 at 11:04:46AM -0700, Jeff Clites via Haskell-Cafe wrote:
>
>>> how so? `x : y : z : zs`
>>
>> I don’t mind the existing either, but it would be interesting if this worked:
>>
>> [x, y, z] ++ zs = list
>
> It is far from clear why this or any similar pattern would be more
> ergonomic than:
>
> x : y : z : zs
>
> --
> Viktor.
> _______________________________________________
> Haskell-Cafe mailing list
> To (un)subscribe, modify options or view archives go to:
> http://mail.haskell.org/cgi-bin/mailman/listinfo/haskell-cafe
> Only members subscribed via the mailman list are allowed to post.
>
More information about the Haskell-Cafe
mailing list