3 ms·
Very interesting! However I wonder whether it's possible to do it on OOP languages such as Java.
by eunos 8y ago
Very interesting! However I wonder whether it's possible to do it on OOP languages such as Java.
- bunderbunder 8y agoWhy wouldn't it be?
- jimbokun 8y agohttps://news.ycombinator.com/item?id=19582150 https://news.ycombinator.com/item?id=19582150
- macintux 8y agoThe good news is that an OOP language is a superset of imperative languages like C. The more general answer is that all Turing-complete languages are functionally equivalent. The misery level varies, as does the applicability to any given project, but anything you can do in C you can also do in Java, Python, Lisp, Erlang, Forth, ad nauseum.
- p4bl0 8y agoIt's already almost the case. Juste rename structure X in class X and make every X_xxx functions a xxx method of class X and you're almost set.