E.g. _almost_ winning a game is the best possible situation to learn from. (You do not learn much by winning a game nor by being beaten badly which is more likely to frustrate you)But in the case of gambling no learning is possible as it is purely a game of chance so here that feeling of 'getting closer to success' is an illusion.