ckknight / gorillascript

GorillaScript is a compile-to-JavaScript language designed to empower the user while attempting to prevent some common errors.
MIT License
300 stars 34 forks source link

need a forum or group to discuss stuff #113

Closed prodev42 closed 11 years ago

prodev42 commented 11 years ago

hi can we get a forum or group to discuss gorillascript plz.

andreyvit commented 11 years ago

I don't know @ckknight's plans for GorillaScript, but in CoffeeScript discussions tend to happen on GitHub (you can ‘watch’ this repository to follow them) and on IRC.

prodev42 commented 11 years ago

you mean i can ask my question like an issue here?

andreyvit commented 11 years ago

In the absence of official guidance to the contrary, I'd say why not. If something isn't clear, it can be thought of as a documentation bug. :-)

prodev42 commented 11 years ago

in the documentation it says in Javascript:

[] + [] === ""
{} + {} === "[object Object][object Object]"
true + [] === "true"

so I tried the following in GS:

print [] ~+ [] ~= "" 
print {} ~+ {} ~= "[object Object][object Object]"
print true ~+ [] ~= "true"

Now only the first statement returned true, how do I get the 2nd and 3rd to return true just like in Javascript?

ckknight commented 11 years ago

Well, what do they return for you that they are different?

prodev42 commented 11 years ago

print {} ~+ {} ~= "[object Object][object Object]" returned false print true ~+ [] ~= "true" returned false

ckknight commented 11 years ago

oh, you're using ~+, not ~&. So you're forcing numeric addition rather than string concatenation (which is what you're sort of copying from the JavaScript example, I assume).

prodev42 commented 11 years ago

Awesome...~& worked...

I am trying to:

print __VERSION__  

but it just show a blank line from the interpreter is that normal?