Name: Anonymous 2013-11-19 12:18
Ask /prog/ anything.
Although don't expect an answer or even a good one.
Also, keep it /prog/ related.
Although don't expect an answer or even a good one.
Also, keep it /prog/ related.
if (this_is_a_very_big_function_name (1, things,
more_things,
even_more_things))
if (1 + 2 + 3 == 5 && 2 + 5 + 3 + 10 + 9 + 7 == 4
&& 3 + 9 == 8 || 3 + 5 == 7
|| (1 + 2 == 5 && 8 + 3 + 6 + 2 + 6 + 2 + 7))
;
i
when they use for
loops? Who started this convention? self
a thing? Why is nonlocal/global a thing? If forced indentation is so good, why do you have to introduce noops like pass
in order to have an empty block? It should be obvious it's empty from the indentation, no? The same thing goes for the colon after each statement. What's the point? Python also lacks a numerical tower, which doesn't go well with the whole "errors only show up when they actually happen" thing you can attribute to Python's lack of static typing and overly dynamic nature - have fun hunting silent errors. Finally, it doesn't offer anything new; there is no feature specific to Python that would make me ignore these flaws for the time being. It's yet another scripting language with no redeeming feature, a ton of flaws, and a poisonous community that suffers from guru worship (a sign that the community is incompetent, similar behavior can be observed in Clojure and C++) and refuses to fix these language flaws.Subroutines are special cases of ... coroutines.
Coroutines are special cases of ... goto statements.
oh no! forced indentation of code! what do you mean everyone already writes code like that because it is the most legible way to write in a statically scoped block structured language? MY FREEDOMS
why do you think it's been so widely adopted by software devs, system administrators, and the scientific community?
software devsYou mean programmers you corporate retard?
being used for web work isn't serious, regardless of it being used by amazon or google)
StringBuilder
is at least on the right track, in that it is an object structure that could allow efficient modifications to parts of the string (including growing/shrinking) while also making an attempt to keep memory usage down.eval
function/statement/annotation/type in a Touring-complete type system is potentially vulnerable to code injection. eval
more common than they tend to be in, say, Perl. Combine that with the stellar reputation of PHP coders and your answer becomes clear.
#include <stdio.h>
struct {
unsigned int a : 1;
int b : 1;
unsigned int c : 2;
int d : 2;
} test;
int main(void) {
int i;
test.a = test.b = test.c = test.d = 0;
for(i = 0; i < 15; i++)
printf("%d:%d:%d:%d\n", test.a++,test.b++,test.c++,test.d++);
return(0);
}
typedef struct unit {
char *name;
unit **nodes;
double *factors;
} unit;