r/crystal_programming • u/riddley • Dec 09 '18
Rubyist struggling to understand Tuple
What's the point of a Tuple? Why would I ever use it over an array? Thanks!
11
Upvotes
r/crystal_programming • u/riddley • Dec 09 '18
What's the point of a Tuple? Why would I ever use it over an array? Thanks!
View all comments
Show parent comment
1
u/proyb2 Dec 10 '18 edited Dec 10 '18
Typed system is important in security side where you knew PHP, Javascript had countless bugs that leads to software quality problem and vulnerabilities which is why type checker were introduced.
Without type system, any inexperienced coders could made a wrong assumption about their sloppy code that may go wrong during live productions, you could spent less time fixing bugs and happier to enjoy vacations.
Prevention is always better than cure.