From: Eero Saynatkari Date: 2006-09-12T04:31:12+09:00 Subject: Re: string as nil or empty string? aidy wrote: > Hi, > > With everything in Ruby being an object, should a string be initialised > as an empty string > > e.g. > > a_string = "" > > or nil > > e.g > > a_string = nil > > cheers I would recommend, whenever possible, deferring initialisation of a String until you actually have said String :) > aidy -- Posted via http://www.ruby-forum.com/.