-
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Reduced the number of built-in keywords.
say
, print
, println
,…
… `require` and `frequire` are no longer hardcoded inside the parser; they are now parsed as prefix-methods. Example: say "hello"; # really means: "hello".say; By not being a special keyword, it can be used as a variable. Example: var say = 42; "a" say; # means: "a".say; say say; # means: say.say; - Simplified the interal object system. The conversion methods are no longer avaiable to all objects. For example, a Block can no longer be converted into a Number or a String by using the `to_s` or `to_i` methods. Example: {}.to_s; # can't find method `to_s` for Block object - Simplified the conversion system. The camelCase methods are no longer avaiable for conversion. Example: "123".toNum; # error -- use `.to_num` instead - Removed the built-in `Fcntl` object. Its methods are now avaiable as: File::* Example: File::O_RDONLY; # equivalent with the old code: `Fcntl.O_RDONLY` - Renamed the module `Module::Caller` into `Module::OO` to reflect better its job. - Functions and method calls on Perl modules are now fatal error when a method/function doesn't exists. (UNIVERSAL::AUTOLOAD is now hidden away at each call) - Other minor tweaks and performance improvements.
- Loading branch information
trizen
committed
Jul 22, 2015
1 parent
354e22e
commit 48c1f1f
Showing
54 changed files
with
411 additions
and
616 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.