4 ms·
Is that it just doesn't matter very much. F# has very powerful generics, and there are particular circumstances where that saves me a lot of typing. But you can
by Scarbutt 9y ago
Is that it just doesn't matter very much. F# has very powerful generics, and there are particular circumstances where that saves me a lot of typing. But you can still get it done in C# with less powerful generics, or Go with none.
Having less lines of code looks like a big win to me.
- gameswithgo 9y agoMaybe it is sometimes? Maybe not? Nobody does a great job of quantifying this stuff. Sometimes a lot of lines where each line is very simple and clear is net easier to deal with than a few very short lines that are cryptic and whose details are hidden from you. Sometimes it doesn't matter either way, because once the code is done, it works forever and you never have to touch it again. Sometimes the languages that save you lines of code cost you at runtime, or compile time, which is a loss. So I don't think it is always a big win, but maybe sometimes it is.
- peterevans 9y agoExpressiveness can be good–but at a conceptual cost, because you must now understand how those fewer lines of code do the same thing as a program in another language that isn't as expressive. I'm glad it's a big win for you! But in the main, I think, it's a tradeoff. Expressiveness has a cost; simplicity has a cost. Personally, I think it's best not to get too attached to specific concepts or languages, because times change, and needs change. If you're a good programmer, you can learn any language and any concept you need to.