SO-ChatBot icon indicating copy to clipboard operation
SO-ChatBot copied to clipboard

Use babel on bot ?

Open darkyen opened this issue 9 years ago • 8 comments

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 !

darkyen avatar Jun 01 '15 22:06 darkyen

Please let this happen.

royhowie avatar Jun 01 '15 23:06 royhowie

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.

SomeKittens avatar Jun 01 '15 23:06 SomeKittens

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

awalgarg avatar Jun 01 '15 23:06 awalgarg

Would !!6> be ok?

Zirak avatar Jun 04 '15 22:06 Zirak

@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

awalgarg avatar Jun 04 '15 23:06 awalgarg

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

SomeKittens avatar Jun 05 '15 00:06 SomeKittens

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

darkyen avatar Jun 05 '15 08:06 darkyen

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

Shmiddty avatar Jun 06 '15 22:06 Shmiddty