4 ms·
I am quite surprised that "self" is so much more used than the next word in the list "if". I know many languages where "self" is not a keyword at all, but I can
by dustinmoris 10y ago
I am quite surprised that "self" is so much more used than the next word in the list "if". I know many languages where "self" is not a keyword at all, but I cannot think of a single language where "if" is not a keyword.
EDIT: Ops, I missed that there is a language filter. Ignore my comment :)
- x1798DE 10y agoThis is broken down by language, the linked list is for python, so it just means that self is more frequently used than if in python.
- RodericDay 10y agoassignments are probably way more common than if-driven program flow control
- goatlover 10y agoI don't think if is a keyword in Smalltalk. IO might not have it either.
- masklinn 10y ago> I don't think if is a keyword in Smalltalk. It's so not a keyword it doesn't even exist. At least in the Smalltalks I've used, they provided ifTrue: and ifFalse: (and compositions thereof).