In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-04-06 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)05/31 Report--
This article mainly explains "how to express the Scala Reference path". The content in the article is simple and clear, and it is easy to learn and understand. Please follow the editor's train of thought to study and learn how to express the Scala Reference path.
Syntax:
Path:: = StableId
| | [id "."] this
StableId:: = id
| | Path "." id |
| | [id "."] "super" [ClassQualifier] "." id |
ClassQualifier:: = "[" id "]"
Paths are not the type itself, but they can be part of a named type, which is the Scala type system
A core role.
A path is one of the following definitions:
null path ε (cannot be explicitly written in the program)
C.this, C is a reference to a class. When within the scope of C reference, the path this is the simplicity of C.this
Write.
p. X, p is a path, x is a stable member of p. Stable members are defined by objects or are stable
The value of the type defines the incoming package or member (§3.6).
C.super.x or C. super[ M] .x, C is a reference to a class, x is a superclass of C or a specified parent
A reference to a stable member of class M. The prefix super is an abbreviation for C.super, and C contains a range of references.
The name of the class.
A stable identifier is a path that ends with an identifier.
Thank you for your reading, the above is the content of "how to express the Scala Reference path", after the study of this article, I believe you have a deeper understanding of how to express the Scala Reference path, and the specific use needs to be verified in practice. Here is, the editor will push for you more related knowledge points of the article, welcome to follow!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.