indutny / candor

Experimental VM for a `Candor` language
http://candor-lang.org/
177 stars 16 forks source link

Add generic Boolean constructor #11

Closed creationix closed 12 years ago

creationix commented 12 years ago

Sometimes it's nice to create a Boolean value from a boolean / integer. Could you add Boolean::New(bool) so I don't have to do expr ? Boolean::True() : Boolean::False()?

indutny commented 12 years ago

Thanks, fixed