Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Branch: master
Fetching contributors…

Cannot retrieve contributors at this time

263 lines (216 sloc) 3.667 kB
TODO
====
tora --config
# => dump json config vars
builtin functions
-----------------
stat()
alarm()
printf()
sprintf()
pack()
unpack()
warn()
builtin objects
---------------
$STDERR.print()
Class::Load
String#index
Array#grep
Array#sort!()
Array#any()
Array#shuffle()
Array#reverse!()
Enumerable#reduce()
Enumerable#sort_by()
for (my $e in dir('t')) { ... }
`` operator.
File::Temp
open($fname, $mode, $encoding)
file($fname).open($mode="rb", $encoding="utf-8")
File#write()
File#read(n)
String#replace(regexp|str, code)
my $a=[];
$a[100]; # => undef
Time.strftime() does not work correctly with %a.
generate document
Standard Libraries
------------------
Module::Build
use POSIX::Glob *;
glob('src/object/*.cc')
Test::LongString
Test::Fatal
File::Zglob
File::which
UV or EV?
XML::LibXML
(HTML::Parser)
Digest::SHA1
Text::Mecab
Proc::Wait3
Geo::GeoHash
syntax
------
* local $FOO[$var];
* "\u3042"
* given-when
* $array.sort({ $_[0] <=> $_[1] }).reverse();
* <<'...'
* "hogehoge $foo"
* "hogehoge #{ 3+2 }"
* last with label
* next with label
* next
* continue
* $PROGRAM_NAME($0)
* fiber
* overload(+) {
$a + $b;
}
* localize STDOUT
* local Foo::method = sub { };
* /xxx/x
* super()
* exceptions should display file name
* signal handler
* perl5's safe signals.
lambda
------
Pending
-------
* $x or $y
* $x and $y
feature
-------
* switch to picostring
* use Test::More qw(is);
* <DATA>
* -n option
* -p option
* -i option
* eval() with upper stack introspeciton like 'my $x=4649; eval("say($x)")'
* [1,2,3].sort(-> $a, $b { $a <=> $b })
* === operator?
* ~~
* bignum support using ttmath?
* for (my $i=0; $i<100; $i++) { } say($i); should be fail.
* local $n
* check deep recursion
* traits
* scope_guard { ... }
* BOOST_SCOPE_EXIT
* http://www.kmonos.net/alang/d/2.0/statement.html#ScopeGuardStatement
* https://metacpan.org/module/Guard
benchmarking
------------
* http://cpanidx.org/perlbench/
* http://shootout.alioth.debian.org/
Library
-------
* Socket
* readline
* ANSIColor
* HTTP client
* B::Deparse
* Test::More
* Text::MicroTemplate
* implement Path::Class detial.
Finished
--------
* say(($a==$b ? "ok " : "not ok ") + $counter);
* "abc" == "def"
* Dir.close
* do not create scope if thre is no var definition.
* $ENV['Foo'] = 'Bar';
* -s
* return if $_;
* x if foo;
* q{}
* qq{}
* last
* $x && $y
* $x || $y
* __FILE__
* __FILE__
* statement scope
* require
* import
* ENV
* to_double()
* caller()
* $x ** 2
* $x | $y
* $x & $y
* $x ^ $y
* $x << $y
* $x >> $y
* $x % $y
* sub f() { { say('hoge') } } f()
* sub f() { { 1 => 2 } } f()
* for (1..10) { say($_) }
Array#push()
Array#pop()
Array#shift()
Array#unshift()
Array#reverse()
* *=
* -=
* &=
* |=
* ^=
* %=
* +=
* say $_ for $array;
* unless () { }
* x unless foo;
getcwd()
* x while y;
* callee()
Code#file
Code#line
getpid()
getppid()
Array#join()
* [1,2,2].map(sub { say($_) });
Array#map()
* destructor in pure tora function
* -x
* DynaLoader
hex()
sqrt()
* $foo.bar; # ignore parens.
dir('t').file($fname)
* inheritance
String#match(regexp|str, code)
XSLoader()
Regexp.quotemeta
* /xxx/i
* /xxx/g
String#replace(regexp|str, str)
ErrnoException?
String#substr(n)
String#substr(n, m)
* Bytes class.
system()
* /xxx/s
* /xxx/m
File#tell()
File#seek()
File#rewind()
Dir.mkdir
Dir.rmdir
File#sync()
Fcntl.flock()
String.lc()
String.uc()
* 'a' x 3 or 'a' * 3
Bytes#decode() / with icu?
String#encode()
open()
* dir()
* file()
* flock
* HTTP server
* use ICU for converting encoding.
Jump to Line
Something went wrong with that request. Please try again.