2 ms·
In Virgil you can write in a very object-oriented style, or not. There are first class functions, partial application, ADTs, proper type parameters, and so on.
by titzer 4y ago
In Virgil you can write in a very object-oriented style, or not. There are first class functions, partial application, ADTs, proper type parameters, and so on. Heck, you can write C style with just functions and basic structs if you want; there aren't built-in classes or methods, so nothing forces you into any particular paradigm.
My own style has evolved as I've learned over the years. I use classes less and make them smaller. I use enums and ADTs a lot more these days. But I rarely go whole-hog functional unless it is in tests.