Mosè Giordano 5/23/2020

Random-based indexing for arrays

Read Original

This article presents RandomBasedArrays.jl, a satirical Julia package where array indexing starts at a random integer. It discusses the perennial debate between 0-based and 1-based indexing in programming languages, arguing that both have merits and that good languages provide abstractions to handle either. The package humorously 'solves' the debate by making the first index unpredictable.

Random-based indexing for arrays

Comments

No comments yet

Be the first to share your thoughts!

Browser Extension

Get instant access to AllDevBlogs from your browser