Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

The Java VM is still the right target but might be fun to start out having an interpreter written in Java.

Code Block

Animal subclass: Dog
	const int w = 3.
	String name = 'Rex'.
	float weight = 0.0.

	speak = [ sys println: 'woof' ]
	feed: int food = [ weight += food * w ]
	walk: Point to from: Point here = [
		...
	]
	float howMuchFood = [ ^weight / w ]
	boolean equals: other = [ ^self name == other name ]

'.' is separator not terminator

'=' not ':='
hmm...maybe it's ok to have keywords for var, method, types.