The principle of the endless melody is the perpetual becoming of a music that never had any reason for starting, any more than it has any reason for ending.
The real composer thinks about his work the whole time; he is not always conscious of this, but he is aware of it later when he suddenly knows what he will do.