Skip to content

Instantly share code, notes, and snippets.

View ima1zumi's full-sized avatar
🐝

Mari Imaizumi ima1zumi

🐝
View GitHub Profile
UI-OSF-USLP 共同技術資料 日本語EUCの定義と解説
日本語 EUC の定義

Ruby: The future of frozen string literals

What is a literal?

In programming languages, literals are textual representations of values in the source code. This is a syntactical concept.

Some examples:

7 # integer literal
require 'io/console'
require 'pty'
command = ARGV.join(' ')
if command.empty?
puts 'Error: Command not specified.'
puts "Usage: `ruby #{File.basename __FILE__} options -- command`"
exit
end