by ThinkWriteMute · 16y ago · 0 comments
Now, in Ruby, if you type "elseif" your code will not run. Problem avoided.
The point of Ruby's "elsif" and Python's "elif" is to have visually disparate representations of the two kinds of code blocks (that have different control flows!) that a developer could easily overlook.
The difference is there to help out you and every other developer that use languages that don't use a visible token to separate code blocks, I promise.
can you give an example where this would make a difference?