Zirak / SO-ChatBot

Other
124 stars 60 forks source link

Use babel on bot ? #240

Open darkyen opened 9 years ago

darkyen commented 9 years ago
Hey I just used let,
and this is crazy,
but let is a reserved identifier,
babel maybe ?

use babel for evaluating !!> ?

Advantages ?

Always latest babel supported syntax !

royhowie commented 9 years ago

Please let this happen.

SomeKittens commented 9 years ago

In FF latest:

let a = 'a';
> undefined
a
> "a"

So it should work without Babel. Moreso a bug in the eval code, I'd guess.

awalgarg commented 9 years ago

let is only available in FF from debugger eval code and script tags with type attribute set to application/javascript;version=1.7.

Zirak commented 9 years ago

Would !!6> be ok?

awalgarg commented 9 years ago

@Zirak :+1:

and while we are at it, can eval be converted to an actual command so we can use it on tell? mmhmm, I am lame

SomeKittens commented 9 years ago

https://github.com/Zirak/SO-ChatBot/wiki/Commands#eval

darkyen commented 9 years ago

@zirak no because babel supports es7 too or (2017) how about babel> or !!babel> ? !!b> ??

Shmiddty commented 9 years ago

!!> "use es6"; let bananas = "delicious"; !!> "use babel"; ...