ponylang / pony-tutorial

:horse: Tutorial for the Pony programming language
http://tutorial.ponylang.io
BSD 2-Clause "Simplified" License
310 stars 111 forks source link

Add self-referential constructor call #417

Closed rhagenson closed 4 years ago

rhagenson commented 4 years ago

Fixes #284 by adding the var a: T => a.create() syntax after introduction of constructors.

rhagenson commented 4 years ago

Don't accept this yet. I realized I put .create() in parentheses. One minute.

rhagenson commented 4 years ago

There we are, oversight on my part that obviously "(create())" reads terribly.

EpicEric commented 4 years ago

Thanks, @rhagenson.