Closed 1468ca0b-2a64-4fb4-8e52-ea5806644b4c closed 5 years ago
Created by: vvv
Is Execute
not needed any more?
closed
assigned to @valery.vorotyntsev
Created by: andriytk
Ok, done.
Created by: andriytk
RuleData is referenced later after the Request. Mode has no meaning by itself without the Request.
Created by: andriytk
It improves the reference locality.
Created by: andriytk
To improve the Reference locality. RuleData is referenced later, after the Request. The Mode is also referenced later at Request. By itself it has no meaning (mode of what?).
Created by: andriytk
Pardon, what is wrong here?
Created by: andriytk
Ok, fixed.
Created by: andriytk
What exactly?
Created by: andriytk
For me it is a lot! It allows instantly and easily see the difference in the return types of different constructors.
Created by: andriytk
Seems so, I could not find where it is used.
Created by: vvv
OK.
Created by: vvv
Good. Consider putting a space between m
and {
.
Created by: vvv
Yes, the documentation is better this way.
Created by: vvv
Please provide the reason for relocating RuleData
and Mode
.
Created by: vvv
How relocation of RuleData
improves the code?
Created by: vvv
Indentation.
Created by: vvv
Please use 2 or 4 spaces for indentation. Odd number of spaces is... odd.
Most of Halon code uses 2 space indentation — the default value used by Emacs' haskell-mode. I find 2 spaces to be too narrow and use 4 [*]: Haskell code is dense, narrow indentations hinder the readability. (Linux kernel uses 8-chars indentation for a good reason.)
[*] I use 2-chars indentation for where
lines, records, lists... E.g.
foo = bar
where -- indented with 2 spaces
bar = undefined -- 4 spaces of indentation
data Rec = Rec
{ f1 :: Int -- 2 spaces of indentation, but the field itself starts at column 4
, f2 :: Char
} deriving Show
data T
= T1
| T2 Float
| T3 (Text, Int)
deriving (Eq, Show)
See also
Created by: vvv
What's the point?
Please revert.
Created by: vvv
[optional] Squeezing excessive spaces into one would be an improvement though.
Created by: vvv
Please don't. This group of changes does not improve readability.
Created by: andriytk