-
-
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.
- Added support for multiple dispatch.
Much better and faster than ever before!!! - Major change: all function/method parameters are required by default, unless a default value is provided. Example: func foo(a, b) { } foo(42) # error: foo() requires two arguments - Optimized the prefix and postfix `++` and `--` operators. - Overall performance improvements.
- Loading branch information
trizen
committed
Nov 30, 2015
1 parent
8ab97cf
commit ab914f8
Showing
26 changed files
with
484 additions
and
179 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
TODO list for Sidef | ||
|
||
General: | ||
* improve the OO system | ||
* reduce the usage of the `overload` pragma | ||
|
||
Method/function parameters: | ||
* add the `where` trait: | ||
|
||
func foo(a where { _ > 0 }) { # works only with positive numbers | ||
say a | ||
} | ||
foo(42) # ok | ||
foo(-1) # must be an error | ||
|
||
Method/functions: | ||
* implement the `is export` trait for methods (maybe) | ||
* improve the user-defined auto-conversion methods (such as: to_s) | ||
`- maybe, rename `to_s` to `to_str`? |
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.