conn = tcpserver.connect(remote) rescue conn = nil
f = File.open(testfile) rescue f = nil
vs.
conn = tcpserver.connect(remote) rescue nil
f = File.open(testfile) rescue nil
Yes, you can do exactly what you did, but I find that the way that I did it is less obfuscated and clearer on intent.
-a
conn = tcpserver.connect(remote) rescue conn = nil
f = File.open(testfile) rescue f = nil
vs.
conn = tcpserver.connect(remote) rescue nil
f = File.open(testfile) rescue nil
Yes, you can do exactly what you did, but I find that the way that I did it
is less obfuscated and clearer on intent.
Oh well, fair enough. I really like the latter. It fits with the
f = x || y
idiom.
-a
Gavin
···
From: “Austin Ziegler” treo@halostatue.ca