Øyvind Harboe wrote:
> > In my opinion the if/then version makes it easier for new users
> > to customize cfg files.  And since most users will need to
> > customize at least one cfg file, I think simplicity trumps short
> > files.
> 
> I think you raise important enough points that unless they are
> addressed, we should keep it as is.

It is an important point, but the if/else construct is just daft. I
did know a bit of Tcl before coming to OpenOCD the first time I saw
that construct I thought "there *MUST* be a better way to do that,
whatever that thing is doing".


> Understanding *one* target script should not be made harder.

Good procedure names and good documentation in the right places is
the answer IMO.

It is also important to keep in mind that the different .tcl files
have very different purposes.  An OpenOCD *user* should only have to
deal with board/ files, while target/ or interface/ plumbing is one
step up on the OpenOCD developer ladder.


//Peter
_______________________________________________
Openocd-development mailing list
[email protected]
https://lists.berlios.de/mailman/listinfo/openocd-development

Reply via email to