Czy istnieje jedno wywołanie funkcji linii, które zamyka program i wyświetla komunikat? Wiem, że w Perlu jest to tak proste, jak:
die("Message goes here")
Mam dość pisania tego:
puts "Message goes here"
exit
sys.exit("Message goes to stderr").
putszapisy do stdout, podczasdiezapisu do stderr, więc:$stderr.puts "Message goes here".