Ranter
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Comments
-
Froot75397yYep that is really cool.
Another cool thing I've seen is negative into returning everything but the value.
So arr[-5] would give you all values but the one at index 5. R does that with vectors for example -
A big problem that comes to mind with this is that you could do it by accident and don't get an OutOfRangeException or similar
-
olezhka25727y@kaesaecracker not a big problem, man. Sacrificing runtime exception for a powerful feature? I'll take that every day, thank you very much :)
Related Rants
-
nottoobright111st Hackathon. 1st Prize. Really happy with this team effort :)
-
mtbrmr7!rant At my last job, my boss would constantly tear my work apart, belittle me and patronise me. He didn't re...
-
devTea0Not really a bug, but once I tried to learn building function ajax per table asynchronously instead of calling...
I just love languages and functions that support using a negative int to access array from the end! Awesome.
random
feelsgoodman