On Tue, Jun 02, 2026 at 04:52:23PM +0200, 'Ralf Hemmecke' via FriCAS - computer 
algebra system wrote:
> Quick question...
> 
> Is there a real need for ioHook("symbol", args), i.e. for more arguments
> than just "symbol"?
> 
> Code like
> 
> https://github.com/fricas/fricas/blob/r1.3.13/src/interp/setvars.boot#L98
> 
> set l ==
>   ioHook("startSysCmd", "set")
>   UNWIND_-PROTECT(set1(l, $setOptions), ioHook("endSysCmd", "set"))
> 
> we can easily rewrite to
> 
>   ioHook("startSysCmd!set")
> 
> In fact, I doubt that we need to distinguish between "set", "abbrev",
> "display" etc. Wouldn't it be enough to just have
> 
>   ioHook("startSysCmd")
> 
> ?
> 
> In case we switch to a one-argument-ioHook, the only external client I know
> of that would be in trouble is frimacs.
> 
> https://github.com/pdo/frimacs/blob/master/frimacs-process-mode.el#L54
> 
> Opinions?

I am not sure what we are supposed to gain from this.  It is pretty
clear that we will loose flexibility.  IMO separtate arguments
are superior to trying to cram all info into a single symbol
like "startSysCmd!set".  And if just _one_ call needs two arguments,
then it is simpler to allow two arguments in all calls.

Note that first argument is supposed to be a symbol, so if we need
to pass something different it should be in the second argument.

-- 
                              Waldek Hebisch

-- 
You received this message because you are subscribed to the Google Groups 
"FriCAS - computer algebra system" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion visit 
https://groups.google.com/d/msgid/fricas-devel/ah8NGb-gmeqbAHny%40fricas.org.

Reply via email to