The statements of optimism about the "new society" by two characters at the film's end are attributable to the film being completed after the communists won the Chinese Civil War.
The optimistic pronouncements about a "new society" at the conclusion of the film are likely a reflection of the post-communist victory in China.