News for hackers. Stuff that matters.
Re:Microfeatures I'd like to see in more languages by Pet_Ant on Saturday January 07, 2023 @09:45AM (#34288406)
Only downside I can see is performance hit. You need to check if it’s negative then you need now calculate the length first… which is a bit of overhead but considering how often you use arrays in a tight-loop… I mean if you can optimize out the check because you can detect that the index is always positive…
Re:Microfeatures I'd like to see in more languages by hajile on Saturday January 07, 2023 @10:42AM (#34289026)
You can have an optional length prepended to arrays that use that feature.