Ruby 3.0.0 Preview 2 Released

We are pleased to announce the release of Ruby 3.0.0-preview2.It introduces a number of new features and performance improvements.Static AnalysisRBSRBS is a language to describe the types of Ruby programs.Type checkers including TypeProf and other tools supporting RBS will understand Ruby programs much better with RBS definitions.You can write down the definition of classes and modules: methods defined in the class, instance variables and their types, and inheritance/mix-in relations.The goal of RBS is to support commonly seen patterns in Ruby programs and it allows writing advanced types including union types, method overloading, and generics. It also supports duck typing with interface types.Ruby 3.0 ships with rbs gem, which allows parsing and processing type definitions written in RBS. The following is a small example of RBS with class, module, and constant definitions.
Ruby 3.0.0 Preview 2 Released #ruby #rubydeveloper #rubyonrails https://rubyonrails.ba/single/ruby-3-0-0-preview-2-released

Nezir Zahirovic

Contractor Ruby On Rails (8+ years) / MCPD .Net / C# / Asp.Net / CSS / SQL / (11 years)

related articles