Skip to content

Instantly share code, notes, and snippets.

@lucperkins
Created December 9, 2013 21:15
Show Gist options
  • Save lucperkins/7881021 to your computer and use it in GitHub Desktop.
Save lucperkins/7881021 to your computer and use it in GitHub Desktop.
Some Hegel-flavored musings. In #dartlang, of course.
abstract class Being {}
abstract class Nothing {}
abstract class Becoming extends Being with Nothing {}
abstract class Nature extends Becoming {}
abstract class Lack extends Nature {}
abstract class LivingThing extends Lack {}
class Person extends LivingThing {
String name;
Person(this.name);
}
void main() {
Person luc = new Person('Luc');
print(luc is Nothing); \\ true
print(luc is Being); \\ true
}
@FranklinChen
Copy link

I'm confused about what this was supposed to illustrate!

@lucperkins
Copy link
Author

Oh, nothing in particular! I just like weaving programming and logic/ontology together once in a while :)

@sethladd
Copy link

Now play with mixins :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment