3 ms·
I'm not sure I wouldn't call the fact that -> function/procedure invocation prepend the caller (aka self) as "not magical"? This seems rather similar to python
by e12e 7y ago
I'm not sure I wouldn't call the fact that -> function/procedure invocation prepend the caller (aka self) as "not magical"? This seems rather similar to python with its explicit self argument to methods?
https://perldoc.perl.org/perlootut.html https://perldoc.perl.org/perlootut.html
- tyingq 7y agoFair. "Understandbly and implicitly magical". Is there a lang doing it better?
- e12e 7y agoSmalltalk? (ed: perhaps not quite fair, as message passing/oo is arguably smalltalk's sole paradigm. Common lisp CLOS is another that's also rather clear, but also rather explicit.) Ed2: there's also Dylan, but again rather explicit: https://opendylan.org/documentation/intro-dylan/objects.html https://opendylan.org/documentation/intro-dylan/objects.html As I understand it, rust is rather low on ceremony: https://doc.rust-lang.org/book/ch17-01-what-is-oo.html https://doc.rust-lang.org/book/ch17-01-what-is-oo.html