Squash Unexpected-End errors with syntax_search
01-Dec-2020 1685
Have you ever hit an error that you just plain hate? Back in 2006, I was learning to program Ruby and following an example from a book. I typed in what I.... I was beyond confused about this unexpected end error. end is a keyword. Right? How could Ruby not expect end? After staring at the code for a while, I realized my mistake. My map |x| line should be map do |x| (missing the do). That moment was the start of a 14-year long hatred of that error message and a search for something better. This post is about how I wrote a gem that you can use to improve this error message. Keep reading!.
Squash Unexpected-End errors with syntax_search #ruby #rubydeveloper #rubyonrails #Squash #Unexpected-End #errors #syntax_search #errors https://rubyonrails.ba/link/squash-unexpected-end-errors-with-syntax_search