kurila01delta - what is new for Perl Kurila 0.1 |
kurila01delta - what is new for Perl Kurila 0.1
This document describes differences between Perl Kurila 0.1 and Perl v5.9.x DEVEL30965
Lexical scoped byte vs codepoint semantics
Strings are internally always encoded using UTF-8
Removal indirect object syntax
Removal formats
Instead of having an string dependend byte vs codepoint semantics, the semantics is not determined
by the lexical scope.
use bytes
sets byte semantics for the current lexical scope, use utf8
set codepoints semantics for the
current lexical scope.
chomp, chop, chr, index, lc, lcfirst, length, oct, ord, reverse, rindex, substr, uc, ucfirst
all depend on the lexical scope to determine whether to use bytes or codepoints.
The default lexical scope is bytes.
Semantics of a function is fixed at compile time.
Strings are always internally represented using UTF-8
No need to worry about what encoding a string is. There is no need to distinguish byte and codepoint strings.
\x{NUMBER}
creates a codepoint with the numeric value NUMBER.
\x[NUMBER]
creates a byte with numeric value NUMBER modulo 256.
\x1b
creates a codepoint or byte depending on the lexical scope.
Makes it possible to distinguish between a bytes and codepoints.
Regex unicode matching is enabled when /u
option is enabled on a pattern, or when use utf8
is in effect.
Unicode vs bytecode matching no longer depends on the input string, but is determined by the pattern, thus a pattern option is needed to distinguish the two.
Indirect object syntax has been removed.
Indirect object syntax is ambiguous. And this frees the syntax for other uses.
The format
and formline
keywords have been removed. As well as the
special vars $^A, $^, $~, $=, $-, $% and $:.
Formats have many problems. Perl6::Form is a much better alternative.
Almost all modules and pragmata have been udpated to for the changes in the Core.
Documention has not been updated for many of the changes mentioned in this document.
Perl Kurila has ony been tested/build for x86_64-linux-gnu-thread-multi platform.
The INSTALL file for how to build Perl Kurila.
The README file for general stuff.
The Artistic and Copying files for copyright information.
Written by Gerard Goossen <gerard@tty.nl>.
kurila01delta - what is new for Perl Kurila 0.1 |