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 goal). By all means make t
> 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 sa
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 allow for multiple i
rol.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 Ognyanov Keremidchiev wrote:
>
> Hello!
>
> What do you think about an idea to have mul
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
> ...
>
> That way we could write more concise and short code as
2017-02-01 20:51 GMT+01:00 Marc Ziegert :
> [...] How about some more syntactic sugar?
>
> {-# LANGUAGE ImportSugar #-}
> import [Data.[Text, Foldable q-as F, Vector (Vector), Vector q-as V hiding
> (Vector)], Control.Concurrent, Data.List q (sum)]
> [...]
o_O I am really not sure if this is a s
roject.
On Wed, Feb 1, 2017, 10:36 Francesco Ariis wrote:
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,
/as -> q-as or q as or q/as or qas
> Gesendet: Mittwoch, 01. Februar 2017 um 16:34 Uhr
> Von: "Francesco Ariis"
> An: haskell-prime@haskell.org
> Betreff: Re: Multiple imports on a single line
>
> On Wed, Feb 01, 2017 at 04:18:13PM +0200, Vassil Ogny
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 work?
> Would import statem
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,
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
...
That way we could write more concise and short code as Haskell promises.
This will be useful for small programs like scripts, small
12 matches
Mail list logo