2 ms·
Pure functions can only call pure functions. Details: http://dlang.org/function.html#pure-functions http://dlang.org/function.html#pure-functions And Haskell'
by qznc 11y ago
Pure functions can only call pure functions.
Details: http://dlang.org/function.html#pure-functions http://dlang.org/function.html#pure-functions
And Haskell's type system is not as expressive as D's. E.g. records.
- egorl4r 11y agoI'm not very good at D, but if you are referring to row polymorphic records, Haskell can do that too (e.g. https://github.com/nikita-volkov/record-preprocessor/blob/master/demo/Main.hs https://github.com/nikita-volkov/record-preprocessor/blob/ma...)
- marcosdumay 11y ago> And Haskell's type system is not as expressive as D's. E.g. records. Please, don't go there. D lacks add types and anything that isn't a first order type. Its type derivation also isn't even remotely as powerful.