its the best functional language because it only uses the minimum functional features you would want in a scripting language which are high order functions and closures.
very much unlike Python which through in every possible functional programming feature possible which does nothing but bloat the language with useless features
>>4
Id be curious how that is implemented since C does not have nested functions. Its probably done with templates which means its not part of the base language
Name:
Anonymous2012-05-31 22:32
>>5
Perhaps it is in C++0x, the language that finally adds all the features missing from C++
>>7
Ive been doing a little googleing and it looks as though closures in C++ are implemented as functors that use lambdas. Not exactly a clean way of doing closures
Name:
Anonymous2012-06-01 11:37
Boy, if there's one thing C++ needs, it's more features.
The venerable master Qc Na was walking with his student, Anton. Hoping to prompt the master into a discussion, Anton said "Master, I have heard that objects are a very good thing - is this true?" Qc Na looked pityingly at his student and replied, "Foolish pupil - objects are merely a poor man's closures."
> Chastised, Anton took his leave from his master and returned to his cell, intent on studying closures. He carefully read the entire "Lambda: The Ultimate..." series of papers and its cousins, and implemented a small Scheme interpreter with a closure-based object system. He learned much, and looked forward to informing his master of his progress.
> On his next walk with Qc Na, Anton attempted to impress his master by saying "Master, I have diligently studied the matter, and now understand that objects are truly a poor man's closures." Qc Na responded by hitting Anton with his stick, saying "When will you learn? Closures are a poor man's object." At that moment, Anton became enlightened.
Name:
Anonymous2012-06-03 2:58
The venerable master Dubs Guy was walking with his student, Anon. Hoping to prompt the master into a discussion, Anon said "Master, I have heard that dubs are a very good thing - is this true?" Dubs Guy looked pityingly at his student and replied, "Foolish pupil - dubs are merely a poor man's shitposts."
>
Chastised, Anon took his leave from his master and returned to his cell, intent on studying shitposting. He carefully read the entire "Lameda: The Autism..." series of papers and its cousins, and implemented a small PHP spambot with a node.js-based reply system. He learned much, and looked forward to informing his master of his progress.
> On his next walk with Dubs Guy, Anon attempted to impress his master by saying "Master, I have diligently studied the matter, and now understand that dubs are truly a poor man's shitposts." Dubs Guy responded by hitting Anon with his stick, saying "When will you learn? Shitposts are a poor man's dubs." At that moment, Anon became enlightened.
Name:
Anonymous2012-06-03 8:06
>>21 Dubs Guy responded by hitting Anon with his stick, saying "When will you learn? Shitposts are a poor man's dubs." At that moment, Anon checked my doubles.
- Much slower than Javascript
- Requires users to install Python
- Doesn't work on mobile devices (Mobile browsers)
- forced indentation of code
- Bloated in language features
- Shitty pseudocode with a hipster fanbase