Hacker News new | ask | show | jobs
by ju_sh 1681 days ago
Does anyone have any good references/examples of taking some OOP code and converting it to functional code? Even a trivial example of OOP inheritance such as Vehicle -> Car(Vehicle) -> SportsCar(Car) with a few methods & attributes (accelerate, brake, current_speed) etc..