Random-based indexing for arrays
Read OriginalThis 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.
Comments
No comments yet
Be the first to share your thoughts!
Browser Extension
Get instant access to AllDevBlogs from your browser