@xxpertHacker I have created a paradigm that allows OOP and FP. When you call a method on an object it returns a new object with some modification. This technically follows Fp guidelines and allows you to still use OOP efficiently. for example Instead of
struct Car {tire_count:u32}
impl Car {
fn lose_tire(&mut self) {
self.tire_count -= 1;
}
You could have this
struct Car {tire_count:u32}
impl Car {
fn lose_tire(&self) -> Self {
return Car{tire_count:self.tire_count-1};
}
}
Facilis - A Low Level Functional Language
Facilis is a strongly typed functional language that aims to be low level. Facilis uses a hand-written recursive descent parser made with love.
Factorial Example
Demo: https://repl.it/@Facilislang/FacilisDemo#README.md
^ Has a user/password login program loaded by default. Read the README!
Source: https://repl.it/@Facilislang/Facilis
^ 2072 lines of C++!
@CSharpIsGud @Subarashi @xxpertHacker
@xxpertHacker I have created a paradigm that allows OOP and FP. When you call a method on an object it returns a new object with some modification. This technically follows Fp guidelines and allows you to still use OOP efficiently. for example Instead of
You could have this