DEV Community


Discussion on: I made a new JavaScript operator!

greenroommate profile image
Haris Secic • Edited

I like those kind of things (the famous destroy all software videos and such). In some languages you might have range(0,10, 0.5) where last value is the step size so it give more flexibility. In others you only have things like 1..10 or 1 to 10.

Just for the laughs you might consider having step size in form of while(x -(0.5)-> 10) and when someone asks why would operator be -()-> you can respond with "because I can" or "why not" XD.