On Sep 21, 2012, at 1:48 PM, Eliezer Croitoru <eliezer / ngtech.co.il> wrote:

> On 9/21/2012 6:18 PM, 7stud -- wrote:
>> Jan E. wrote in post #1076932:
>>> Hi,
>>>=20
>>> Why is everybody using this Java-like exception syntax nowadays? Is
>>> there some book teaching this?
>>>=20
>>> Use
>>>=20
>>> raise SyntaxError, "Modes Allowed: #{modes}"
>>>=20
>>=20
>> Because that syntax is dumb?
>>=20
> If there is not difference in the operation such as in:
> newregex =3D /[\d]+/
> newregex =3D Regexp.new("[\\d]+")
>=20
> so there is not really a good reason to use one or the other since the res=
ult is the same.
>=20
> Thanks,
> Eliezer
>=20
> --=20
> Eliezer Croitoru
> https://www1.ngtech.co.il
> IT consulting for Nonprofit organizations
> eliezer <at> ngtech.co.il
>=20

It's a matter of efficiency and clarity. Besides, regex is actually:

Test =3D~ /t/

http://www.ruby-doc.org/core-1.9.3/Regexp.html

Lo and behold, the docs have imparted divine wisdom on such subjects of impl=
ementation.=20

Brandon Weaver=