- 论坛徽章:
- 1
|
Perl6 语法中令人惊叹的特性有很多,
我不愿意说出来,是因为我觉得我的了解还不全面,
仅仅说出一部分怕给别人造成误解而已。
可以摘录一段儿 rakudo star release note 里的内容来回答这个问题:
Some of the many cool Perl 6 features that are available in this release of Rakudo Star:
* Perl 6 grammars and regexes
* formal parameter lists and signatures
* metaoperators
* gradual typing
* a powerful object model, including roles and classes
* lazy list evaluation
* multiple dispatch
* smart matching
* junctions and autothreading
* operator overloading (limited forms for now)
* introspection
* currying
* a rich library of builtin operators, functions, and types
* an interactive read-evaluation-print loop
* Unicode at the codepoint level
* resumable exceptions
There are some key features of Perl 6 that Rakudo Star does not yet handle appropriately, although they will appear in upcoming releases. Thus, we do not consider Rakudo Star to be a "Perl 6.0.0" or "1.0" release. Some of the not-quite-there features include:
* nested package definitions
* binary objects, native types, pack and unpack
* typed arrays
* macros
* state variables
* threads and concurrency
* Unicode strings at levels other than codepoints
* pre and post constraints, and some other phasers
* interactive readline that understands Unicode
* backslash escapes in regex <[...]> character classes
* non-blocking I/O
* most of Synopsis 9
* perl6doc or pod manipulation tools |
|