From: Eliezer Croitoru Date: 2012-09-22T03:48:16+09:00 Subject: Re: How would you allow variable from specific list of Fixnum? On 9/21/2012 6:18 PM, 7stud -- wrote: > Jan E. wrote in post #1076932: >> Hi, >> >> Why is everybody using this Java-like exception syntax nowadays? Is >> there some book teaching this? >> >> Use >> >> raise SyntaxError, "Modes Allowed: #{modes}" >> > > Because that syntax is dumb? > If there is not difference in the operation such as in: newregex = /[\d]+/ newregex = Regexp.new("[\\d]+") so there is not really a good reason to use one or the other since the result is the same. Thanks, Eliezer -- Eliezer Croitoru https://www1.ngtech.co.il IT consulting for Nonprofit organizations eliezer ngtech.co.il