Skip to content

Commit

Permalink
Update planing.md
Browse files Browse the repository at this point in the history
  • Loading branch information
refaktor authored Apr 8, 2024
1 parent 66bdf72 commit 8bf8ede
Showing 1 changed file with 13 additions and 9 deletions.
22 changes: 13 additions & 9 deletions planing.md
Original file line number Diff line number Diff line change
Expand Up @@ -93,19 +93,21 @@ Let state saves be encrypted with password and console_.....rye.enc ask for same
+ walk - useful for dialects, recursive algos, ...
+ xword, exword improvements, xword accepts args, equality - matching still works

### Import function , current path / script [--]
### Import function , current path / script [++]

Import function like "do load %file" but only looks for files local to the main script file or current script file basically.
Try to make import always relative to current script, so interpreter should have a concept of "current script" at loplevel. Maybe a specific "do" variant that is invoked in improt and is script location aware.

This would also be needed for loader errors in case of multiple files, so you know what file the loader failed.

### Improve errors with current path / script [--]
## For 0.0.19

### Improve errors with current path / script [+-]

At least loader errors should be able to display filename next to location. Toplevel code at least should also be aware of script filename, or should we look in direction of a stacktrace. Would we need to manually manage the stack of callees'
maybe only in debug flag since it would impact performance. Maybe functionname => number of calls so recursion doesn't push out the stack info.

### Liner with standard ansi colors, some improvements [--]
### Liner with standard ansi colors, some improvements [+-]

Test using standard colors, we will see if they work in Emacs ansi-term then, we will see if maybe general terminal theming works on them, also xterm.js probably has theming, test it, make build flag if possible, update refaktor/liner for it.

Expand All @@ -117,22 +119,24 @@ We could also try to add some low hanging fruit improvements of syntax highlighe
- More key combinations (ctrl-d, ...)
- Sole keys (pageup, pagedown)

## LATER

### Math dialect fwd

Let math dialect call rye functions also, not just builtins. It would be good if we could just use function "math" ... not context math and in it function math or math/do ... but still preserve the usable context too. Hmmmm ....

### Devops context fwd [+-]

### do_main build flag and Android test

if build flag do_main is used make the dot behaviour work even without the dot. Usefull for distributing binary and main.rye , also to test to produce a mobil APK with Fyne.

## LATER

### Mod-words - experiment

`word:: ::word` would be mod-words and would allow changing existing values to words. So set-words would only create and fail if word already is set in current context. Mod-words would only change and fail if word
is not yet defined. We rarely modify at all ... to much modifying is a smell that code could be written better. word:: visually is not horrible, or that noticable, but jsut noticable enough I think. So let's do this and
we will see what practice shows. For starters just add it to loader but it could behave the same as set-word so we woule volontarily use it and see hot it looks and feels at all. If it seems ok, we change the interpreter.

### do_main build flag and Android test

if build flag do_main is used make the dot behaviour work even without the dot. Usefull for distributing binary and main.rye , also to test to produce a mobil APK with Fyne.

### MakeArgError improve output

We could try to display more information at MakeArgError. We know what type the value was. We don't but if we knew the names of arguments it would be even better. But builtins in Rye currently don't have named
Expand Down

0 comments on commit 8bf8ede

Please sign in to comment.