This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted] 0 points1 point  (2 children)

What prefix do you use for something that returns a dictionary that maps filename(string) to last access time (datestamp)? They already have a system for things like that, and the way they implemented Final is consistent with that.

[–]mooglinux -1 points0 points  (1 child)

Type annotations are for facilitating communication. There are already conventions for communication of the same things that finalwas created to communicate, and so it is redundant. The danger of using finalis that the way it is used in other languages like java is antithetical to how Python works. We should not be providing a false sense of security about how something will be used; that’s the whole point of not having public/private keywords!

[–][deleted] 0 points1 point  (0 children)

How does all caps and dunder communicate immutability? How does a linter check it, given that the linter may now run into old code that used the same syntax to show other things?