monte-language / typhon

A virtual machine for Monte.
Other
67 stars 10 forks source link

Containers should have a .empty() method #138

Closed MostAwesomeDude closed 7 years ago

MostAwesomeDude commented 7 years ago

I guess that we don't have an issue for this yet!

MostAwesomeDude commented 7 years ago

Doing .isEmpty() :Bool since that matches our predicate methods on other builtins.

erights commented 7 years ago

Glad to see the name isEmpty rather than empty. empty can also be read as an imperative, to empty out (or clear) the container.

MostAwesomeDude commented 7 years ago

@erights My thoughts precisely.