Menu

#60 Kind coercion chains

open
nobody
None
5
2006-07-17
2006-07-17
No

I would like to be able to convert odb items without
having to make multiple trips to the Kind popup menu.

For example. Lets say I have a wp text and I want to
get to an outlne. I currently have to change it to a
string and then to an outline.

Why can't I just select Outline?

What I'm thinking is we need the kernel to understand
coercion chains. These chains would be lists of how to
coerce from a start type to an end type. So for my
example we'd have something like...

wp text > string > outline

Then the menu code would look for the type you have
selected, scan the coercion chains for the start type
and highlihgt the menu items that match the end type.

This would also be a time saver!

Discussion


Log in to post a comment.

Auth0 Logo