4 ms·
Yes, that is actually what I meant to convey. I should have said that methods should be verbs, and that they should be methods of the subject (not direct object
by cammil 16y ago
Yes, that is actually what I meant to convey. I should have said that methods should be verbs, and that they should be methods of the subject (not direct object). And that parameters should be linguistic objects, direct or otherwise.
PS. Cases, I hadn't even considered that. My feeling is that methods should be imperatives. They tend to be anyway. I haven't given much thought though.
- limmeau 16y agoCases and prepositions both signify into which 'slot' of a verb this object goes. From that perspective, if prepositional objects correspond to keyword args, so do cases. On the other hand, a case is a form of the noun-phrase which can be constructed without looking at the predicate. I see a similarity to the address operator in C: foo(bla, &blub) means that bla is passed in value-case, whereas blub is passed in reference-case.