- Python 3.10.5 (main, Jun 6 2022, 18:49:26) [GCC 12.1.0] on linux
- Type "help", "copyright", "credits" or "license" for more information.
- >>> from typing import Final
- >>> sneed: Final = "feed"
- >>> sneed
- 'feed'
- >>> sneed = "seed"
- >>> sneed
- 'seed'
|
- const QString sneed("feed"); // west const // Start reading here
- sneed = "seed"; // Will not compile
- QString const chuck("seed"); // east const
- chuck = "feed"; // Will not compile
- /* <Kill-Animals> I forget; is there any difference between these two statements: `const QString foo("foo"); QString const bar("bar");`
- * <kalven> no
- * <Kill-Animals> Ah okay, Are there people who put const afterwards? It just looks weird.
- * <kalven> yes, we call them weirdos
- * <great_taste> some people are weird, yes
- * <kalven> this is colloquially referred to as "west const" and "east const" */
|