Private fields khai báo với # prefix chỉ có thể truy cập trong class: #name.
Không thể truy cập từ bên ngoài kể cả subclass — truy cập field private từ bên ngoài ném TypeError tại runtime (không phải SyntaxError). SyntaxError chỉ xảy ra nếu sai cú pháp như obj.#field bên ngoài class. Đây là private thực sự (khác convention _ prefix), được implement ở engine level. Cũng có private methods (#method()) và static private.
Private fields declared with the # prefix can only be accessed within the class: #name.
They cannot be accessed from outside, including from subclasses — accessing a private field from outside the class throws a TypeError at runtime (not a SyntaxError). SyntaxError only occurs for syntax mistakes like obj.#field written outside the class definition. This is true privacy (unlike the _ prefix convention), implemented at the engine level. Private methods (#method()) and static private fields are also supported.