Documentation for a newer release is available. View Latest

Ruby

Ruby 3.0

Fedora 34 menyediakan Ruby 3.0, versi terbaru dari bahasa Ruby. Fitur penting dari Ruby 3.0, dibandingkan dengan versi sebelumnya:

  • The ability to run concurrently is updated with regards to Ruby 2.7, with Fiber Scheduler and the preliminary addition of Ractor.

  • Static typing: RBS provides a foundation for allowing programs written in Ruby to define types. Ruby remains a dynamically typed language by default, but RBS acts as an additional (foundation) layer of a program to provide static type functionality and gain some of the benefits of a statically typed language.

  • IRB memperoleh beberapa keunggulan kinerja: lebih cepat, dan dapat mengukur waktu eksekusi menggunakan perintah measure.

  • Library standar diperbarui.

  • Pattern matching is now a stable feature.

Lihat catatan rilis untuk informasi lebih lanjut.