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

Improve example that illustrates what "as" expressions are for #411

Closed felipecrv closed 4 years ago

felipecrv commented 4 years ago

The previous example has an explicit Array type annotation and the example containing the "as" expression does not need that since it wants to demonstrate how the coercion can be achieved by expressing the type of the elements in the Array after with "as".

SeanTAllen commented 4 years ago

@jemc I'm neutral.

jemc commented 4 years ago

That's good enough for me. :grin:

Thanks for your contribution!