koka-lang / koka

Koka language compiler and interpreter
http://koka-lang.org
Other
3.16k stars 151 forks source link

Fix error in docs #445

Closed chtenb closed 5 months ago

chtenb commented 5 months ago

The docs mention that p( age = age + 1) is valid syntax for the copy constructor, which I found slightly surprising, since in other places age is properly called with an argument, like p.age. As it doesn't actually seem to work either, I assume it's a mistake/typo in the docs.

TimWhiting commented 5 months ago

Thanks!