So it's O(N) -> O(1) where N is a number of lines/imports.
But you're right for the readiness. I'm convinced!
2017-02-02 16:52 GMT+02:00 Doug McIlroy :
> > I often see a confusion between greater expresiveness (good goal) and
> > having to type less (largely irrelevant
> I often see a confusion between greater expresiveness (good goal) and
> having to type less (largely irrelevant goal). By all means make the module
> system more expressive, but try to avoid "clever" things for convenience.
To expand upon this principle a bit, syntactic sugar that promises to
Sven Panne
writes:
> I often see a confusion between greater expresiveness (good goal) and
> having to type less (largely irrelevant goal). By all means make the module
> system more expressive, but try to avoid "clever" things for convenience.
+1
--
Jón Fairbairn
2017-02-01 22:39 GMT+01:00 Vassil Ognyanov Keremidchiev :
> Yes, but it could be a bit more denser without so much repetition of
> "import", like:
>
> import Data.Text, qualified Data.Map as M, qualified Vector as V hiding
> (Vector)
>
> i.e. the same as current situation, but
Yes, but it could be a bit more denser without so much repetition of
"import", like:
import Data.Text, qualified Data.Map as M, qualified Vector as V hiding
(Vector)
i.e. the same as current situation, but allow for multiple imports for the
same word "import" comma separated. What do you think?
You can already write this, with only a tiny bit of syntax:
module MyApp where
import Data.Text; import Data.Foldable; import Control.Concurrent
Whether it is good style is another matter, but all compilers will certainly
accept it.
Regards,
Malcolm
On 1 Feb 2017, at 14:18, Vassil
ied/as -> q-as or q as or q/as or qas
> Gesendet: Mittwoch, 01. Februar 2017 um 16:34 Uhr
> Von: "Francesco Ariis" <fa...@ariis.it>
> An: haskell-prime@haskell.org
> Betreff: Re: Multiple imports on a single line
>
> On Wed, Feb 01, 2017 at 04:18:13PM +
likewise, why not use semicolon? per se we already can do mulitple lines on
a single line via semicolon :)
On Wed, Feb 1, 2017 at 10:34 AM, Francesco Ariis wrote:
> On Wed, Feb 01, 2017 at 04:18:13PM +0200, Vassil Ognyanov Keremidchiev
> wrote:
> > Hello!
> >
> > What do you
On Wed, Feb 01, 2017 at 04:18:13PM +0200, Vassil Ognyanov Keremidchiev wrote:
> Hello!
>
> What do you think about an idea to have multiple imports on a single line,
> like:
>
> module MyApp where
> import Data.Text, Data.Foldable, Control.Concurrent
> ...
Hello Vassil,
how would qualified/as