I'd remove modules in a heartbeat. F# is a good language.
-
-
I personally disagree, since I'd rather write C++ than F#
2 replies 0 retweets 0 likes -
Replying to @strega_nil @samth and
(language with modules but without builtin sum types) for me is > (language without modules but with builtin sum types)
1 reply 0 retweets 0 likes -
I've written substantial programs in both SML and OCaml, and in neither one did I use the module system in a way that wouldn't work in the Haskell module system.
2 replies 0 retweets 0 likes -
Replying to @samth @graydon_pub
The one thing I kind of want is the ability to pass a trait to a singleton module without threading it around, for dependency injection. (I don’t believe in DI as a way of life, but sometimes it’s a useful pattern.) I’m not sure the ML module system is that great at DI though.
3 replies 0 retweets 1 like -
Like, SML’s module system looks nice on paper, but I’ve worked with it in anger (at UChicago) and hated it.
2 replies 1 retweet 1 like -
I understand what they’re trying to do, but the usability is pretty bad. More work is needed.
1 reply 0 retweets 0 likes -
I feel like the issue is using SML, an explicitly academic language - OCaml's module system is far nicer, ime.
1 reply 0 retweets 0 likes -
Replying to @strega_nil @pcwalton and
SML isn't attempting to make modules very ergonomic, but OCaml has done a ton of work in that area
1 reply 0 retweets 0 likes -
Replying to @strega_nil @pcwalton and
I, for example, really appreciate doing stuff like: ``` val reduce : 'a array -> (module Monoid with type t = 'a) -> 'a ```
1 reply 0 retweets 1 like
I don’t find that kind of thing readable at all, but reasonable people can disagree
-
-
what's not readable about that? genuinely curious.
2 replies 0 retweets 0 likes -
Replying to @strega_nil @pcwalton and
(besides the backwards type application and a bit too much wordiness)
1 reply 0 retweets 0 likes - 3 more replies
New conversation -
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.