News for hackers. Stuff that matters.
Re:Why do dynamic languages make it more difficult to mainta... by rpedela on Monday January 27, 2014 @02:56PM (#7132741)
I don't know what your first sentence means. As for the second, I was explaining what I thought the author meant by "scaffolding" not making an argument for or against anything. Now here is an argument for you: shouldn't two of most widely used languages be included in an argument about static vs dynamic typing?
Re:Why do dynamic languages make it more difficult to mainta... by tel on Monday January 27, 2014 @03:10PM (#7132830)
The first sentence is a hint toward Haskell's wonderful derivation system which tells the compiler to write the "obvious" code for all kinds of common scaffolds. It's almost always all you need for equality, showing, ordering, hashing. There's also the GeneralizedNewtypeDeriving which allows you to inherit instantiation of types into all kinds of structurally equivalent types.

And while it's valuable to talk about popular languages in terms of the kind of static typing people are likely to encounter... they also have really outdated static type systems. While you can argue that it's likely that you'll bump into Java/C/C++ when working with static types, it's pretty invalid to argue generally about static type systems using them as examples. Things have just come a really long way.

Re:Why do dynamic languages make it more difficult to mainta... by rpedela on Monday January 27, 2014 @03:47PM (#7133107)
Fair enough.
Re:Why do dynamic languages make it more difficult to mainta... by mightybyte on Monday January 27, 2014 @03:16PM (#7132885)
And my first sentence was explaining why even that interpretation of the author's meaning is an invalid argument. It demonstrates the equivalent of writing toString() in Haskell. And no, the two most widely used languages should most definitely NOT be used in an argument about static typing because the state of the art in static typing has evolved significantly since those languages were created. The fact that you didn't know the meaning of my first sentence tells me that you're arguing from ignorance about what is possible today in a fairly well-established language.
Re:Why do dynamic languages make it more difficult to mainta... by dlubarov on Monday January 27, 2014 @03:13PM (#7132858)
He was referring to Haskell's syntax for derived instances - http://www.haskell.org/tutorial/stdclasses.html#sect8.4
Re:Why do dynamic languages make it more difficult to mainta... by mrbrowning on Monday January 27, 2014 @03:22PM (#7132935)
> shouldn't two of most widely used languages be included in an argument about static vs dynamic typing?

No, because the affordances and limitations of static typing are not the same as the affordances and limitations of static typing as implemented in Java/C++. You can't infer very much about static typing from statements made about those languages, and you can't infer much about those languages from statements made about static typing, so it follows that you can't freely substitute one for the other in these discussions.