If foam forms on the surface of the dal while boiling, it is best to discard it. Leaving the foam can alter the taste of the dal, making it taste slightly strange.