3 ms·
The special syntax is really just a convenience. If you want to build `Seq` everywhere, you can always do `3 <| 2 <| 1 <| Seq.empty`. Or you can use `{-# LANG
by massysett 10y ago
The special syntax is really just a convenience. If you want to build `Seq` everywhere, you can always do `3 <| 2 <| 1 <| Seq.empty`. Or you can use `{-# LANGUAGE OverloadedLists #-}`, though this will use lists as an intermediate type.
However these problems only exist for literals, and typically literals in source code are not going to be so huge for lists to be a problem anyway.
A list literal is like a string literal: convenient. Getting rid of the special syntax wouldn't accomplish anything.