www.digitalmars.com         C & C++   DMDScript  

digitalmars.D - [OT, but getting closer]: reddit discussion on C++ Concepts: A Postmortem

reply Andrei Alexandrescu <SeeWebsiteForEmail erdani.org> writes:
D is mentioned in the article, and I'm starting a discussion comparing 
the relative merits of two schools of thought for concepts.

http://www.reddit.com/r/programming/comments/cmn67/c_concepts_a_postmortem/


Andrei
Jul 07 2010
parent reply bearophile <bearophileHUGS lycos.com> writes:
Bartosz Milewski:
It's the same phenomenon you have in weakly typed languages,<

I think he means dynamically typed languages. An example of partially weakly typed language is C. For example Python3 is almost as strongly typed as D.
Concepts do introduce a lot of complexity into the language but they reduce and
organize the complexity of programs.<

There are features more important for library developers and other features that are enough for application writers.
In Java, everything is an object,<

Except native values as ints, etc. It's a nice article that has taught me several details I didn't know about. This is the tutorial on Concepts I have appreciated more: http://tinyurl.com/3xq56o4 Bye, bearophile
Jul 07 2010
next sibling parent Andrei Alexandrescu <SeeWebsiteForEmail erdani.org> writes:
On 07/07/2010 08:42 PM, bearophile wrote:
 Bartosz Milewski:
 It's the same phenomenon you have in weakly typed languages,<

I think he means dynamically typed languages. An example of partially weakly typed language is C.

I made the same exact point while reviewing! I'm not sure why he stuck with the "weakly" misnomer. Here's my comment: =========== "weakly typed languages" -> "dynamically typed languages" throughout (just to avoid antagonizing anyone gratuitously, plus it's more correct as C is weakly typed but can't detect type errors). ===========
 For example Python3 is almost as strongly
 typed as D.


 Concepts do introduce a lot of complexity into the language but
 they reduce and organize the complexity of programs.<

There are features more important for library developers and other features that are enough for application writers.

Yah, though I pointed out that dedicating too complex features to the very few is an indication that something has gone wrong in the design of the language. It's the beauty-of-the-part at the expense of the whole fallacy. Andrei
Jul 07 2010
prev sibling parent reply Jeff Nowakowski <jeff dilacero.org> writes:
On 07/07/2010 09:42 PM, bearophile wrote:
 This is the tutorial on Concepts I have appreciated more:
 http://tinyurl.com/3xq56o4

Because tinyurl is evil: http://www.generic-programming.org/languages/conceptcpp/tutorial/
Jul 08 2010
next sibling parent reply "Nick Sabalausky" <a a.a> writes:
"Jeff Nowakowski" <jeff dilacero.org> wrote in message 
news:i15vi3$1aag$1 digitalmars.com...
 On 07/07/2010 09:42 PM, bearophile wrote:
 This is the tutorial on Concepts I have appreciated more:
 http://tinyurl.com/3xq56o4

Because tinyurl is evil: http://www.generic-programming.org/languages/conceptcpp/tutorial/

With the invention of copy/paste, I find that things like tinyurl are only useful for when you need to read off a url over the telephone (or rickroll someone), or something like that. Which is to say, practically never.
Jul 08 2010
next sibling parent Eric Poggel <dnewsgroup yage3d.net> writes:
On 7/8/2010 10:24 PM, Nick Sabalausky wrote:
 (or rickroll someone), or something like that. Which is to say, practically
never.

Speak for yourself.
Jul 09 2010
prev sibling parent reply Walter Bright <newshound2 digitalmars.com> writes:
Nick Sabalausky wrote:
 With the invention of copy/paste, I find that things like tinyurl are only 
 useful for when you need to read off a url over the telephone (or rickroll 
 someone), or something like that. Which is to say, practically never.

It's necessary for twitter.
Jul 09 2010
parent reply "Nick Sabalausky" <a a.a> writes:
"Walter Bright" <newshound2 digitalmars.com> wrote in message 
news:i17s50$1hu4$1 digitalmars.com...
 Nick Sabalausky wrote:
 With the invention of copy/paste, I find that things like tinyurl are 
 only useful for when you need to read off a url over the telephone (or 
 rickroll someone), or something like that. Which is to say, practically 
 never.

It's necessary for twitter.

Ugh, don't even get me started on twitter... Although I guess one thing I could say about it is they did a very good job naming it...Or at least the first 4 letters...
Jul 09 2010
parent reply Walter Bright <newshound2 digitalmars.com> writes:
Nick Sabalausky wrote:
 Ugh, don't even get me started on twitter... Although I guess one thing I 
 could say about it is they did a very good job naming it...Or at least the 
 first 4 letters...

Twitter has its niche. I found it to be useful for announcements about D, as people who are interested may not be interested in regularly checking the n.g. http://twitter.com/D_Programming http://twitter.com/DigitalMars http://twitter.com/WalterBright
Jul 09 2010
parent BCS <none anon.com> writes:
Hello Walter,

 Nick Sabalausky wrote:
 
 Ugh, don't even get me started on twitter... Although I guess one
 thing I could say about it is they did a very good job naming it...Or
 at least the first 4 letters...
 

D, as people who are interested may not be interested in regularly checking the n.g.

RSS? -- ... <IXOYE><
Jul 09 2010
prev sibling parent bearophile <bearophileHUGS lycos.com> writes:
Jeff Nowakowski:
 Because tinyurl is evil:

The page was offline when I have read it, so I have used a Google cache, that has a very long URL... Bye, bearophile
Jul 08 2010