Project

General

Profile

Bug #12984

Updated by sawa (Tsuyoshi Sawada) about 5 years ago

Splatting splatting an empty array to a construct that takes a list is supposed suppose to be equivalent to specifying no list 

 ```ruby 
 def foo 
 end 

 foo *[] #works 
 

 ``` 

 So so `rescue *[]` should be equivalent to `rescue` 

 ```ruby 
 begin 
   raise 'error' #Uncaught exception 
 rescue *[] 
   puts 'caught' 
 end 
 ``` 

Back