For a very long time I haven't changed or added anything to the interpreter itself. So it seems that language is in this regard quite feature complete. But there was one thing that on my mind for more than a year. I wasn't sure if it's really needed, but it seems it is.
Op and Pipe-words take fist function argument from the left. But there are cases when you want a second argument of a function taken from the left. Especially since generic methods in Rye dispatch on the first argument, and sometimes the active value (which is usually part of the information flow - not function parametrization) is exactly not that value.
Well this works now, for generic and normal builtin functions. I haven't added it to user functions yet, but I guess it shouldn't be any harder than this was.
Examples will explain it better:
And the code from the last blogpost becomes a little cleaner.
Komentarji
Objavite komentar