function f(f){
return f(f)
}
f=f(function(){
return f
});
var l=f.length;
alert(f(function(f){
return f
})(function(x,y){
return Math.pow(y,-x)
})(l--,l));
proper_variable_case (alt. propercase for short stuff)
ProperFunctionCase, ProperClassCase, MethodsAreFunctions
PROPER_CONSTANT_CASE (alt. PROPERCASE for short stuff)
Name:
Anonymous2007-02-08 4:17
>>60
why should functions, classes, and methods be different from other variables?
>>61
convention. it varies from language to language, though.
Name:
Anonymous2007-02-08 5:37
Forced conventions for the win (Haskell, starting functions with a capital is an error).
Name:
Anonymous2007-02-08 7:34
>>61
I'm >>60, and I sympathize with your question. It's convention, just so you know what's callable. I'll agree that differentiating an integer from a string (be it iStuff and lpszStuff (Hungarian notation shit) or stuff% and stuff$ (... OR GTFO)) is excessive, and shouldn't be necessary (if you call a "Rofl" method, you expect any object of any class that's stored in the variable should be able to do "Rofl"), but actually executing (even though it can be seen as a method as well, like Python) is "serious business". So I capitalize what's callable (classes, functions, even callable objects in Python), but I sympathize with your intent on treating functions absolutely the same as any other data type (and that code is a particular case of data, not something different).
>>63
You gave me just another reason not to bother with Haskell (besides insane syntax, needlessly complicated, small codebase/community made mostly from el33tist h4xx0rz). I follow my own ( >>60 ) conventions on any language; if I can't, I get pissed.
Name:
Anonymous2007-02-08 7:52
>>64
those are not conventions you follow, but your own obnoxious compulsions. python has pep 8, and if you can't follow it, you're being a dick to other people that will read your code. and believe me, your own naming style is not smarter than the official convention, and even if it was, you couldn't justify using it, because it's confusing when something else than a class is in camel case in python
To do complicated things, you write complicated code -- or simple code that runs like crap.
small codebase
Are you referring to libraries and applications and such? There are a lot.
community made mostly from el33tist h4xx0rz
Mostly professors, but a couple elite hackers as well.
I follow my own ( >>60 ) conventions on any language; if I can't, I get pissed.
Aha, a weak point! Also, Haskell forces classes and modules to start with a capital, and possibly constants as well... now how do you define a constant? Oh, like that.