vlastachu
Re:Why I'm Not a React Native Developer
on Wednesday September 28, 2016 @10:49AM (#12598063)
> no basic knowledge how JavaScript is interpreted at runtime
Could you show where author wrong about this?
Re:LambdaCube 3D
on Sunday December 27, 2015 @09:42AM (#10797552)
http://lambdacube3d.com/editor.html why type inference (for hints in editor) is so cool?
Can I do something similar for haskell (without pain if possible)?
Re:CIL (.NET bytecode) to WebAssembly compiler
on Thursday September 03, 2015 @05:31AM (#10163988)
Is it only proof of concept?
If no: How they develop compiler to language with incomplete spec?
Re:Alan Kay on Messaging (1998)
on Sunday May 03, 2015 @12:28PM (#9481930)
tell me about message passing without concurrency. is it message passing in ruby? and why.
Re:Use Haskell for shell scripting
on Friday January 30, 2015 @08:20AM (#8971820)
> prefixes, default instances
Also bad setters ("record {field = val}" looks nice but useless, as not a function).
I hope the developers of GHC also clearly see the problem and someday will be engaged in it. Then the language becomes much more expressive.
Is that task exists somewhere in roadmap?
Re:Use Haskell for shell scripting
on Friday January 30, 2015 @07:03AM (#8971618)
I'm not good enough haskell programmer, but there is possible solution (records as you mentioned).
import Prelude hiding ((-))
data Grep = Grep {isRecursive :: Bool, maxCount :: Maybe Int} --etc
deriving (Show)
grep = Grep False Nothing
--short pseudonim
r :: Grep -> Grep
r command = command{isRecursive = True}
m :: Int -> Grep -> Grep
m num command = command{maxCount = Just num}
(-) :: a -> (a -> a) -> a
(-) command flag = flag command
ourGrep = grep -m 50 -r
main = print ourGrep -- > Grep {isRecursive = True, maxCount = Just 50}
--then we should write monad which execute that data