best way to mount a volume?

mount volume (“afp://” & username & “:” & pwd & “@idisk.mac.com/” & username)

OR

mount volume “http://idisk.mac.com/username/” as user name username with password pwd

My guess is that internally both of these execute the same way. Probably just two different interfaces for the same core functionality.