Static Typing in Ruby with a Side of Sorbet | Heroku
02-Apr-2020 2163
Ruby is a dynamic language, which means that types are checked when the code is run. If you try to call a method on an object that does not exist, the compiler will not complain, you'll only find out about that error when the code is executed and you get a NoMethodError.Static languages avoid this problem. In a static language, such as Java, the compiler is told or can interpret the type of each variable, and return values from a method or function. This means, among other things, that if you try to call a method that does not exist on an object you will get an error at compile time.
Static Typing in Ruby with a Side of Sorbet | Heroku #ruby #rubydeveloper #rubyonrails #Static #Typing #Sorbet #Heroku #heroku https://www.rubyonrails.ba/link/static-typing-in-ruby-with-a-side-of-sorbet-heroku