DEV Community

Discussion on: Introducing Metho: Safely adding superpowers to JS

Collapse
 
guitarino profile image
Kirill Shestakov

How is 2[to(13)] better than range(2, 13)? Or 13[isEven] better than isEven(13)?

I see how it's an interesting syntax trickery to play around with, but I don't see how that produces anything other than confusion. It's definitely not something I'd want to see in production.

Collapse
 
lawrencedol profile image
Lawrence Dol

Completely agree. Interesting, but of no pragmatic value beyond raising an interesting idea.

Collapse
 
codingjlu profile image
codingjlu

Come on, the syntax looks cool. No, practicality isn't the point here.