rubyists-
anyone know of a cleaner way to disgard exceptions than
open ‘no-exist’ rescue true
??
in that case, the ‘true’ is effectively a no-op - anything could work - but
the intent is clearer than
open ‘no-exist’ rescue 1
or
open ‘no-exist’ rescue false
which would both also work.
-a
···
–
Ara Howard
NOAA Forecast Systems Laboratory
Information and Technology Services
Data Systems Group
R/FST 325 Broadway
Boulder, CO 80305-3328
Email: ara.t.howard@fsl.noaa.gov
Phone: 303-497-7238
Fax: 303-497-7259
====================================
I use ‘rescue nil’ which is only one character less 
···
On Thu, Apr 24, 2003 at 06:23:37AM +0900, ahoward wrote:
anyone know of a cleaner way to disgard exceptions than
open ‘no-exist’ rescue true
i like that better actually. it seems to read - ‘rescue by doing nothing’.
plus. it’s shorter.
-a
···
On Thu, 24 Apr 2003, Brian Candler wrote:
On Thu, Apr 24, 2003 at 06:23:37AM +0900, ahoward wrote:
anyone know of a cleaner way to disgard exceptions than
open ‘no-exist’ rescue true
I use ‘rescue nil’ which is only one character less 
–
Ara Howard
NOAA Forecast Systems Laboratory
Information and Technology Services
Data Systems Group
R/FST 325 Broadway
Boulder, CO 80305-3328
Email: ara.t.howard@fsl.noaa.gov
Phone: 303-497-7238
Fax: 303-497-7259
====================================