User loginNavigation |
archivesAlexander Stepanov: STL and Its Design Principles (video)Alexander Stepanov: STL and Its Design Principles (Talk presented at Adobe Systems Inc., January 30, 2002) I've only watched the part beginning at about 1 hr, where Stepanov describes his thoughts on the future of programming (languages). Interesting and entertaining stuff. Maybe one of you gets around to providing a description of the rest of the video. ;-) By Manuel J. Simoni at 2011-10-14 17:13 | LtU Forum | login or register to post comments | other blogs | 5891 reads
"Crutches in language design", accidental complexity and feature overlap
dmbarbour's new Freedom and Crutches blog post details an interesting point of language design. I found it very relevant to LtU and would be interested in more examples of crutches. Named parameters are given as example. They help to alleviate long parameter lists, but would be unnecessary if the offending functions were reformulated with better abstractions, packing more parameters together in semantically meaningful compounds. Named parameters, he says, also have negative effects on the language:
It's interesting that neelk recently used a very related argument against N-ary function types. If the alternative to n-ary functions is tuples, the alternative to named parameters is passing a record with named field. It is quite difficult, however, to do that "without sacrificing performance" -- you would need value tuples and structures, which brings important implementation subtleties. What other crutches do you know? How should they be avoided? I'm wondering if there are also cases of two language features that are, taken independently, not crutches, being both beneficial, but combined together create a crutch-like feature overlap. Edit: when discussed a given language feature, please try to provide some concrete example of (one of) its intended use case(s). It always help discussion to be less abstract, and it's often interesting to ask oneself: "what is the core of this example? could a simpler facility accomplish this more specific case?". |
Browse archivesActive forum topics |
Recent comments
36 weeks 3 days ago
36 weeks 3 days ago
36 weeks 3 days ago
1 year 6 weeks ago
1 year 10 weeks ago
1 year 12 weeks ago
1 year 12 weeks ago
1 year 15 weeks ago
1 year 19 weeks ago
1 year 19 weeks ago