sidef
sidef copied to clipboard
A modern object-oriented programming language implemented in Perl.
```ruby class Top { method init { say "Top init" } } class Next < Top { has Array array = [ { say "asd" }, { say "different" }...
```ruby # Fully-Qualified Typename to Universal Main-Derived Typename func fqtn_to_umdtn (String fqtn) -> String { (/^Sidef::Runtime::\d+::(main::.+)$/ =~ fqtn)[0] } class A { method getclass (scope) { say "\t__CLASS_NAME__: #{__CLASS_NAME__}" say...
Getting the list of candidate function-or-methods a name might refer to (and for Sidef FOMs, their argument list?), reading a Block's inner/surrounding comments, similar things. and some of the other...
There are 11,000 lines of testing code in `scripts/Tests` (more than Ruby's parser in C) and I'm not looking to re-write it all right now, but 136 of those 1400...
Would be good if you could do: ``` my $interpreter = Sidef->new( classes => { Sys => 'My::Sidef::Sys::Sys', }, ); ``` And that instance of Sidef would use My::Sidef::Sys::Sys instead...
Once we have an initial estimate and the associated count, we can make a very good second estimate by using the Qk ~ 1n/ zeta(k) on the error term. For...