I made a language and the language now can make instances:
class A {
pub name = "john";
pub weight = 10;
pub fn f() {
return "cat";
}
}
let b = new A();
print(b.name);
print(b.f());
Wow, I'm happy for this :)
I made a language and the language now can make instances:
class A {
pub name = "john";
pub weight = 10;
pub fn f() {
return "cat";
}
}
let b = new A();
print(b.name);
print(b.f());
Wow, I'm happy for this :)
For further actions, you may consider blocking this person and/or reporting abuse
Heroku was created by developers, for developers. Get started today and find out why Heroku has been the platform of choice for brands like DEV for over a decade.
John Ajera -
Bhavya Jain -
Mike Young -
Mike Young -
Top comments (0)